Reputation: 5094
I have this value ${agact.ppr} that i want to show in my page jsp. It can be shown like this easly:
<c:out value="${agact.ppr}" />
but I want to use it into input form like this:
<form:input type="text" value="${agact.ppr}" path="ppr" />
but it's not working I don't know why. I displayed others attributes in input fields without problem and this one no.
My class is like this :
Class Agent{
int ppr;
/** setters and getters**/
}
Upvotes: 1
Views: 2757
Reputation: 4663
Try removing the 'value' attribute, 'path' should be all you need there. Also make sure the getter and setter are valid.
Upvotes: 2