From: Rob McBride <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Multiple Values In Form Hidden Parameter Date: Tue, 20 Jul 2004 09:29:35 -0700
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]
_________________________________________________________________
Overwhelmed by debt? Find out how to ‘Dig Yourself Out of Debt’ from MSN Money. http://special.msn.com/money/0407debt.armx
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]