The FormBean will be updated with the selection. Your DataBean will not be
modified.

--
Martin Cooper

----- Original Message -----
From: "Nick Pellow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 08, 2001 3:16 PM
Subject: Re: select options


>
>
> Martin Cooper wrote:
> >
> > It seems the documentation is wrong. It should be something like this
> > instead:
> >
> > ----- 8< -----
> > The attribute name of the bean whose properties are consulted to
determine
> > which option should be pre-selected when rendering this input field. If
not
> > specified, the bean associated with the form tag we are nested within is
> > utilized. [RT Expr]
> > ----- 8< -----
> >
> > As with the other form-related tags, I have never had to specify the
name
> > attribute, because I've always been able to use the default, meaning
"use
> > the form's bean".
>
>
> >
> > Hope this helps.
>
>
> Yes, that helps a lot.
> I want to do the above as I have a DataBean that stores commonly used
> lists of data. (credit card types, category names, brand names etc).
>
> I want to be able to use the same bean every time I want to display that
> data.
> Yet have my FormBean store the result of the users selection.
> Will the value on my FormBean be updated or the value on the DataBean be
> updated
> with the users selection?
>
> Cheers,
> Nick
>
> >
> > --
> > Martin Cooper
> >
> > ----- Original Message -----
> > From: "Nick Pellow" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 07, 2001 5:01 PM
> > Subject: select options
> >
> > > Hi,
> > > Looking at:
> > >
> > > http://jakarta.apache.org/struts/struts-html.html#select
> > >
> > > I notice that for the name attribute, the following description is
> > > given:
> > > name   The fully-qualified java class name of the bean containing the
> > > underlying property. [RT Expr]
> > > Is this correct? I thought 'type' was usually used for class names and
> > > 'name' was used for variable names.
> > >
> > > Could someone please tell me what the name attribute means and when it
> > > should/shouldn't be used
> > > with select boxes?
> > >
> > > Cheers,
> > > Nick


Reply via email to