It would help if you described this in more detail. I hope this explains it
for you.

If you have a JSP that submits a form using <html:form>, you have to have
that action associated to that form, otherwise you will get an exception
when that JSP is loaded.

If you have a JSP that wants to display data in a form bean (or any other
bean really) but doesn't need to submit it to an action, you don't need to
do anything special. You can generate the data your action and pass it to
the JSP using request.setAttribute(String, Object). Your JSP just needs to
refer to it by the name you passed into it. I often use formBeans for this
purpose just because DynaBeans are easy to define, and with Hubert Rabago's
FormDef plugin, it's pretty trivial to get DynaForm beans instantiated and
populated with exactly what I need on the display side.

> -----Original Message-----
> From: t t [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 16, 2004 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: Help ! Question regarding Action and Form Bean!
>
>
> Hi,all,
>
> My action is triggered in one jsp file, and will end
> up in another JSP file, both have a form bean inside.
> And the action has to deal with both form beans.
> Question: How can I associate both form bean to one
> action?
> Thanks in advance!
>
> Tong
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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