Hi,
Aren't form beans reused ? I thought only the "reset" is called.
Thanks,
Mohan
-Original Message-
From: Karr, David [mailto:david.karr@;attws.com]
Sent: Tuesday, November 05, 2002 9:38 PM
To: Struts Users Mailing List
Subject: RE: Don't want the ActionForm to
Is your "action" scope set to "session" or "request"? I would guess
it's set to "session". I believe if you set it to "request", your form
bean will be created on each request.
> -Original Message-
> From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
> Sent: Tuesday, November 05, 2002 6:25 A
endy Smoak [mailto:Wendy.Smoak@;asu.edu]
Sent: Tuesday, November 05, 2002 9:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Don't want the ActionForm to refill my form.
Sri Sankaran wrote:
> you can simply delete the form bean; it'll get re-created.
Can you clarify? You say
Sri Sankaran wrote:
> you can simply delete the form bean; it'll get re-created.
Can you clarify? You say the form been will get re-created, yet I have this
code in my Action:
if ( form == null ) {
form = (ActionForm) session.getAttribute( "contactForm" );
if ( form == null
Redirect instead of forward. You can do this in your struts-config.xml file
for your action by setting the redirect attribute of the forward element to
true; or, if you are manually creating the forward, the constructor takes a
boolean which indicates a redirect instead of a forward.
robert
> ---
Re-initialize the form-bean to the way it was when the page was first invoked. If
form was all blank fields, you can simply delete the form bean; it'll get re-created.
Sri
-Original Message-
From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
Sent: Tuesday, November 05, 2002 9:25 AM
To: [EM
6 matches
Mail list logo