Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts Users »

Value attribute of <html:checkbox

Raman Garg

2003-12-19

Replies:

Hello,
I have a checkbox and i want to assign value attribute in <html:checkbox
and that value should be my "id" value. How should i do that?? by default it is taking value="on" but i don't want this.

<html:checkbox property="deleteItem" value="??">
Delete
</html:checkbox>
here i want value to be my "id" value of table.. i have this string in <logic:iterate loop

What I did till now:

I have <bean:define id="val1" name="subfilters" property="subFilterId"/>
and assign   this as <html:checkbox property="subfilterids" value="<%=val1%>">
still it is not working and giving me error

this may be simple issue.. but i have tried and couln't find solution.. Pls help.

Raman Garg
©2008 junlu.com - Jax Systems, LLC, U.S.A.