You could use <html:hidden property="hidden[1]" value="value1"/>

Look at the struts-documentation for indexed properties...

Your getter/setter methods use an int parameter... 

String getHidden(int index){}
and
void setHidden(int index, String value){}

Any help?


Lewis
-----Original Message-----
From: Anil Guntgatti [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2001 16:13
To: [EMAIL PROTECTED]
Subject: Creating <html:hidden ... > dynamically


Hi,

We plan to store bean data has hidden form objects , so that it could be
passed to the subsequent pages, without having to make the scope of the
beans to be session. We do not know how many attributes the bean objects
can have, and plan to store it in an array of hidden form objects like
this.

<input type=hidden name=hidden1 value=value1>
<input type=hidden name=hidden2 value=value2>
...
<input type=hidden name=hiddenn value=valuen>

As per the struts framework, we need to define getter and setter for each
and every html form objects in the java form object. How do we go about
doing this.
Any help would be appreciated.

Anil.
Mail to: [EMAIL PROTECTED]



Reply via email to