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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -