I've seen this a lot with Struts - it seems you can't have forms with the
same name in any two scopes. To work around this issue, I name my forms
differently. For instance, I store the logged-in user's form in the session
as currentUserForm and when I edit a user, I call it userForm.
HTH,
Matt
To: 'Struts Users Mailing List'
Subject: RE: form scope question
I've seen this a lot with Struts - it seems you can't have
forms with the same name in any two scopes. To work around
this issue, I name my forms differently. For instance, I
store the logged-in user's form in the session
Because the default scope is session. If you want it to be request, you
must specify it in struts-config.
Mark
-Original Message-
From: Kevin Williams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 6:12 PM
To: [EMAIL PROTECTED]
Subject: form scope question
Hi,
I am hoping
Edgar Dollin írta:
A good practice is to NEVER use the same form name unless the action is
related and you are expecting the data to pass through. Of course the class
can be reused.
If someone wants to use an actionform in actions not related can
reference the form with the
same 'name', but
4 matches
Mail list logo