I have Spring MVC app with user settings. Settings are objects with strings Name, Value, User and Type field.
To edit values form with table is generated and Values are editable strings.
For Settings that have value checkbox in field Type, I would like display checkbox, ie:
<c:if test="setting.type=='checkbox'">
<form:checkbox path="setting.name" />
</c:if>
I cannot figure it out. Any suggestions?
did you try to change
to
?
of course, the ‘setting’ object must be passed to jsp correctly.