Interesting, but you are still defining get_xx and set_xx methods for the
form elements - they would just be defined in the struts-config.xml, right?

What if one would like to dynamically generate the form - i.e. you don't
know what form fields would be present at any given time and subsequently
generate the get_xx and set_xx methods on the fly?

Any thoughts?

S.

> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 1:22 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: How-to dynamically name properties?
>
>
> Check out the Struts 1.1b source code and example.war
>
> Basically, you set up the definition of a form bean in your
> struts-config.xml
> and then use wherever you like.  (you don't actually have to write/compile
> an ActionForm)
>
> The coolest thing is that you also don't have to change any non-nested (I
> think/hope [:{o ) references in your jsp.
>
>
> JM
>
> > -----Original Message-----
> > From: Steve Scheepmaker [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 14, 2002 4:08 PM
> > To: Struts Users Mailing List
> > Subject: RE: How-to dynamically name properties?
> >
> >
> > What exactly is all this DynaActionForm stuff? I've seen
> references to it
> > but have not been able to find any information on it...
> >
> > Steve.
> >
> > > -----Original Message-----
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 14, 2002 1:10 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: How-to dynamically name properties?
> > >
> > >
> > > Out of curiosity.
> > >
> > > Why do you need this done?
> > >
> > > You want to be able to tell Struts which get???() and set???() to
> > > call based
> > > on a value in a bean?
> > >
> > > Wouldn't the DynaActionFrom suit your needs?
> > >
> > > JM
> > >
> > > > -----Original Message-----
> > > > From: Michael Marrotte [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, May 14, 2002 3:59 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: How-to dynamically name properties?
> > > >
> > > >
> > > > Can someone help me figure a way to do something like this?
> > > >
> > > > <html:select property="x_<bean:write name="y" property="z"
> > > > filter="true"/>">
> > > >
> > > > What I wanted to do is dynamically name the <html:select> property,
> > > > x_[some-dynamic-value].
> > > >
> > > > Any idea on how I should really approach this?
> > > >
> > > > Thanks,
> > > >
> > > > --Michael Marrotte
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to