Witam mam problem z zapisem pola z formularza (kategoria).
<form:form id="temat" method="POST" modelAttribute="temat" action="nowyTemat" >
<p>Wprowadz tytul tematu:</p>
<form:input id="tytul" path="tytul" type="text" maxlength="255" />
<p>Wprowadz tekst:</p>
<form:textarea id="tresc" path="tresc" rows="9" cols="40" /></br>
</br>
<form:select path="kategoria"
items="${kategorie}"
itemLabel="nazwa"
itemValue="id"
/>
<br/></br>
<input type="submit" value="Dodaj"/>
</form:form>
zapis jest automatyczny pod klase z encja Stringi i int sa zapisywane prawidlowo ale pole kategoria jest objektem a mianowicie.
@ManyToOne
@JoinColumn(name="kategoria")
private Kategoria kategoria;
czy jest jakis sposob zeby to pole spring zapisal prawidlowo
BLAD jaki wyrzuca
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).