Hi Sahil,

You can do this sort of thing by using indexed properties:

<html-el:hidden property="svalues[0]" value="abc"/>
<html-el:hidden property="svalues[1]" value="def"/>

But in your bean you will need to add getters and setters that include
the index as a parameter:

private void setSvalues(int index, String val)
{
    svalues[index] = val;
}

private String getSvalues(int index)
{
   return svalues[index];
}

HTH,
--Rob

On Tue, 20 Jul 2004 11:40:48 -0400, Gupta, Sahil <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'd like to pass multiple values in my form hidden parameter. Is there any
> way i can do this?
> 
> <html:hidden property="svalues" value="abc,def"/>
> 
> Bean:
> 
> private String []svalues;
> 
> private String []getSvalues(){
> return svalues;
> }
> 
> private void setSvalues(String []vals){
> svalues = vals;
> }
> 
> TIA
> S
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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

Reply via email to