java - How to test jsp attribute type -
java - How to test jsp attribute type -
i have spring mvc app user settings. settings objects strings name, value, user , type field. edit values form table generated , values editable strings.
for settings have value checkbox in field type, display checkbox, ie:
<c:if test="setting.type=='checkbox'"> <form:checkbox path="setting.name" /> </c:if> i cannot figure out. suggestions?
did seek change
<c:if test="setting.type=='checkbox'"> to
<c:if test="${setting.type=='checkbox'}"> ?
of course, 'setting' object must passed jsp correctly.
java jsp spring-mvc jstl
Comments
Post a Comment