If we use ActionForm, then we will be  having getter for collection which we
can use in our jsp, here is the code
html:select name="userForm" property="testStatus" >
<html:options collection="list" property="name" labelProperty="value" />

</html:select>

But how can we get the same functionality if we use DynaActionForm, all
attributes will be in xml config file. Then how and where can we have
collection?

Any help would be greately appriciated

Thanks,
Anand

----- Original Message -----
From: "Anand M S" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 10:35 AM
Subject: Re: DyanActionForm and <html:select>, <html:options> tags


> Thanks for reply. But how can we do this using DynaActionForm, I'm not
sure,
> please can u provide some code sample?
>
> Thanks in advance.
>
> ----- Original Message -----
> From: "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, February 20, 2003 10:20 AM
> Subject: RE: DyanActionForm and <html:select>, <html:options> tags
>
>
> > html:select deals with populating a form property (a String -
typically -
> > for single-select, and array for multi-select); html:options needs a
> > collection placed into some scope which is commonly done in the Action
> class
> > that forwards to the JSP which needs to display the drop-down box.
> >
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> >
> >
> > > -----Original Message-----
> > > From: Anand M S [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, February 20, 2003 9:14 AM
> > > To: Struts Users Mailing List
> > > Subject: DyanActionForm and <html:select>, <html:options> tags
> > >
> > >
> > > Hi,
> > >   If I use DyanActionForm, how should I populate dropdown box using
> > > <html:options> tag? we would declare all the form attributes in
> > > struts-config.xml, how should I initialize the collection and where?
> > >
> > > Thanks,
> > > Anand
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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