Hi
I am using Spring in a project I am working on and now I am having problems with the Spring:bind tag reading boolean field in the command class. This form is for editing User and the User command class has m_Admin which is a boolean field and getter and setter and isAdmin( ).
The following code is on this page and when I try to load a User everything is OK except this Admin field which always turns out to be false, even if the User is an admin. Does anybody know what is wrong.
p.s. I am planning on changing this edit field to radio buttons, when this starts to work correctly.Code:<spring:bind path="command.admin"> <input type="edit" name="admin" value="true" value="<c:out value="${status.value}"/>"/> </spring:bind>
Sincerely,
Kjartan Juliusson


Reply With Quote