Ah, I think I get ya. Why don't you just make one great big form block
containing both areas and any other non-form content inside? There's no
restrictions on what can go in a "form", so you can put your entire page
into form if you want.
- M
------------------------------------------------------------------------
Michael Taylor
TXE Systems, Inc.
[EMAIL PROTECTED]
Abdullah Jibaly wrote:
No, I actually meant that Struts will only process and associate one form with
the action processing that request, and therefore any validation, etc. So only
one html form will get associated with the current ActionForm, even with
session scope, although you may have several html forms in that page.
Regards,
Abdullah
-----Original Message-----
From: Michael Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 1:02 PM
To: Struts Users Mailing List
Cc: Andrew Tomaka
Subject: Re: Two Forms, Two Form Beans, One JSP
You can have multiple forms on the same page. I am using Tiles. I put
some forms in the header/footer and they work just fine. I had to use
different actions for the two forms, and I had to use session scope for
one of them in order to retain state for it. Request scope is the
reason for the one-form limit you are suggesting, right?
------------------------------------------------------------------------
Michael Taylor
TXE Systems, Inc.
[EMAIL PROTECTED]
Abdullah Jibaly wrote:
To simplify your code, I would have one ActionForm, and one processing action.
Depending on which submit button or whatever is pressed I'd redirect to the
correct page.
By the way you can only have one struts action form per action and per jsp page.
Regards,
Abdullah
-----Original Message-----
From: Andrew Tomaka [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 9:26 AM
To: user@struts.apache.org
Subject: Two Forms, Two Form Beans, One JSP
Hey all,
I'm attempting to create a JSP that is made up of two forms. Each
form needs a different form bean and is processed by a different
action. The catch is that the first form returns back to the JSP and
the action responsible for this needs the name attribute set to the
Form Bean of the first form. When the JSP is loaded after the
processing of the first form, both the form tags are assigned the name
of the first Form Bean.
Is it possible to assign Form Beans to a form instead of assigning
them to an action?
Thanks,
~ Andrew Tomaka
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]