Java Mailing List Archive

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

RE: Value attribute of <html:checkbox

Leticia Golubov



Have you tried the indexed tag?

    Valid only inside of logic:iterate tag. If true then name of the
html tag will be rendered as "id[34].propertyName". Number in brackets will
be generated for every iteration and taken from ancestor logic:iterate tag.
[RT Expr]

as per

-----Original Message-----
From: Raman [mailto:ramang@(protected)]
Sent: 19 December 2003 07:02
To: Struts Users Mailing List
Subject: Value attribute of <html:checkbox

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="??">
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"
still it is not working and giving me error

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

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