> Please excuse the simple question (I am new to Struts):
> 
> When is it appropriate to use form beans for an action?
> 
> The reason why I ask is because you can obtain information 
> from a request
> via the information sent by the HTTP/Post/Get.  If I have a 
> bunch of widgets
> in a form I can just obtain the info in the action this way:
> 
> request.getParameter("widgetName")
> 
> I have a fairly good understanding of how form beans work, 
> but I'm just
> wondering in what type(s) of situation(s) these would be applied.
> 
> Thanks for your help.

The form bean is simply the OO view of what the user has typed in his 
HTML form.
One of the benefits of this object is that you can validate() it.
And reset() it to default values.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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

Reply via email to