You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sashi Ravipati <Ra...@michigan.gov> on 2003/06/11 16:41:26 UTC

How can I do this

I am reading the values from an array, when I build my table I use
<html:text name="addRateForm" property="<%=\"firstName[\"+j+\"]\"%>" />
the above tag converts to 
<input type="text" name="firstName[1]" value="b">

Now I also want to build a hidden value along with the text box as shown below

<input type=hidden value="b" >

I tried to to this which does not work
<html:hidden property="firstName" value='<bean:write name="addRateForm" property="<%=\"firstName[\"+j+\"]\"%>" />' />

How can I achieve this

Thanks

Re: How can I do this

Posted by James Mitchell <jm...@apache.org>.
Can you explain what it is you are trying to do?  (in a broader scope)

Have you looked at or used indexed fields before?


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org


----- Original Message -----
From: "Sashi Ravipati" <Ra...@michigan.gov>
To: <st...@jakarta.apache.org>
Sent: Wednesday, June 11, 2003 10:41 AM
Subject: How can I do this


I am reading the values from an array, when I build my table I use
<html:text name="addRateForm" property="<%=\"firstName[\"+j+\"]\"%>" />
the above tag converts to
<input type="text" name="firstName[1]" value="b">

Now I also want to build a hidden value along with the text box as shown
below

<input type=hidden value="b" >

I tried to to this which does not work
<html:hidden property="firstName" value='<bean:write name="addRateForm"
property="<%=\"firstName[\"+j+\"]\"%>" />' />

How can I achieve this

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org