To populate the string array your http request would take the structure: 
name=value1&name=value2&name=value3 etc where you have a java.lang.String[] 
name; property on your form.
 
So there are many ways to do this in html, with Struts tags (eg populated from 
form) you could try:
 
 <logic:iterate id="name" name="MyDynaForm" property="name">
    <html-el:hidden property="name" value="${name}" />
  </logic:iterate>

Note the use of struts el tag (you could also you the JSTL c:out and c:forEach 
tags).
 

________________________________

From: Anet [mailto:[EMAIL PROTECTED]
Sent: Fri 20/10/2006 10:01 PM
To: user@struts.apache.org
Subject: Problem with hidden String[] object



Hi everybody;
  I have a String[] object. but I can't pass it via form as a hidden object.
Is it wrong to pass a string[] object as html:hidden ???
  Thanks.
  

               
---------------------------------
How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call rates. 

**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to