Tom,
The form bean is created both in the JSP page and when
the page is submitted back to the server.

Regards,

Richard

--- "Thomas T. Veldhouse" <[EMAIL PROTECTED]> wrote:
> Thomas T. Veldhouse wrote:
> > I am having a problem using Action forms because I
> do not know what
> > to call the attributes (setters and getters on the
> form) so that they
> > are called with the request values.  Here is a
> sample of the JSP:
> >
> > <td>
> > <html:select name="yeast" property="yeastLab.ID">
> > <html:options collection="labList" property="ID"
> labelProperty="lab"/>
> > </html:select>
> > </td>
> > </tr>
> > <tr>
> > <td>Form</td>
> > <td>
> > <html:select name="yeast" property="yeastForm.ID">
> > <html:options collection="formList" property="ID"
> > labelProperty="form"/> </html:select>
> > </td>
> >
> > Note that both select tags have the same name and
> different
> > properties. What do I call the attribute on the
> form bean so that it
> > is called (setter and getter) for each of these
> select options?
> >
> 
> As often happens with a lot of experimenting,  I
> have figured this one out
> for myself.  I used the form bean for everything. 
> All the documentation
> that I found didn't indicate that the form bean was
> actually instatiated
> upon entry into the page (with a call to reset), and
> thus I didn't quite
> understand that using the bean for data output was
> the proper method.
> "Programming Jakarta Struts" indicated that this
> might be the case, but then
> proceded to state that the form bean was
> instantiated upon submitting the
> form, which isn't true.   It is created upon
> entering the page and hitting
> the <html:form> tag.
> 
> Tom Veldhouse
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

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

Reply via email to