Ok. Let me try to explain.

In order to specify the property tag below:

<html:select name="courseForm"
 property="prerequisiteCourseId" multiple="true" size="3">

I need a corresponding Field in my Form-Bean.

This form bean will be an array of Strings or ints. 

So this is the field in my form Bean:

int prerequisiteCourseId[] = new int[x];

But my problem is how do I get the value of 'x' above before-hand.

Do a guesswork or what ?

Chetan

-----Original Message-----
From: nirav bumia [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 11, 2006 2:14 PM
To: Struts Users Mailing List
Subject: Re: Handling select tags with multiple = true

I couldnt get your question.

If you want the array length for some purpose in your action then you
can use the length attribute of the String array, why do you want to
specify the length in your action form?

-nirav

On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
> But how will I specify the array Length in the ActionForm.
>
>
>
> -----Original Message-----
> From: nirav bumia [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 11, 2006 12:34 PM
> To: Struts Users Mailing List
> Subject: Re: Handling select tags with multiple = true
>
> It is an Array of Strings.
>
> On 9/11/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:
> > Hi All:
> >
> >
> >
> > I have the following:
> >
> >
> >
> > <td>
> >
> > <html:select name="courseForm"
> > property="prerequisiteVO.prerequisiteCourseId" multiple="true" size="3">
> >
> > <html:option value="0"><bean:message
> > key="lms.choose.prerequisite.course"/></html:option>
> >
> > <html:options collection="courseVector" labelProperty="name"
> > property="courseId"/>
> >
> > </html:select>
> >
> >
> >
> > My question is what all property= "prerequisiteVO.prerequisiteCourseId"
> can
> > be.
> >
> >
> >
> > An array of Strings, an array of ints or an array of Integers. How about
a
> > Vector.
> >
> >
> >
> > If it is an array of ints which I prefer, how will I code them in my
> > Formbean called as I will not know its size in advance.
> >
> >
> >
> > I think if it is a Vector then it will be easiest for me. But is a
Vector
> > possible ?
> >
> >
> >
> > Chetan
> >
> >
> >
>
>
> --
> Regards
> Nirav
>
> ---------------------------------------------------------------------
> 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]
>
>


-- 
Regards
Nirav

---------------------------------------------------------------------
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