You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Affan Qureshi <qu...@etilize.com> on 2002/12/27 13:16:35 UTC

Re: Multiple forms in session [WAS: RE: how to send actionForm fromone action to another action]

Is there a way to instantiate multiple instances of actionForm beans under
different names? Also the <html:form> and action should lookup beans using a
dynamic string rather than one from struts-config.xml. We can create unique
names by appending some Id to the names. This way we might be able to avoid
name conflicts and still be able to work with multiple forms simultaneously.
Is this possible in any way? Or what is a better solution for this?

I dont want to make the bean request-scope because session-scope beans allow
for better functionality. BTW I am using Nested tags in this case.

Thanks and regards,

Affan

----- Original Message -----
From: "Eddie Bush" <ek...@swbell.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, December 18, 2002 11:32 AM
Subject: Re: Multiple forms in session [WAS: RE: how to send actionForm
fromone action to another action]


> Eddie Bush wrote:
>
> > They'd get trampled :-(  In fact, there's really not a good solution
> > that comes to mind.  The only single thing I see that we can do to
> > make using session-based forms more safe is to add the module name to
> > the key we use to place the forms into scope.  I'm going to go look
> > for that bug now - nearly certain it's there.
>
> ... and I have yet again managed to show my imperfection - I was wrong!
>  I sure thought such a bug existed, but I guess it must have been a
> discussion instead of a bug report.
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>