But then how do I do it? I mean how can I assign a hidden field a value of another attribute.
Richard Yee <[EMAIL PROTECTED]> 09/13/2006 04:06 PM Please respond to "Struts Users Mailing List" <user@struts.apache.org> To Struts Users Mailing List <user@struts.apache.org> cc Subject Re: Problem in setting the value of hidden field in JSP Pankaj, You shouldn't be setting both the value and the property attributes of html:hidden -Richard Pankaj Gupta wrote: > Hi, > > In a JSP, I am iterating over a collection and want to set a hidden field > with the value of one of the properties of the objects contained in > hashtable. I am using the following code for that. Can somebody suggest > what is going wrong. > > <logic:iterate id="file" name="deviceFileList" indexId="id"> > <bean:write name="file" property="fileActiveStatus" /> > <html:hidden property="hiddenFile" indexed="true" name="file" > value="fileActiveStatus"/> > > regards, > Pankaj > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]