On the controller element in the struts config, set the nocache attribute
to true. We just did this for our current project and it has fixed a lot of
issues with our wizard-type flows where we use a SessionBean to dictate
flow.
The other option is to manually write the pragma/expire headers on
John,
ActionErrors is stored under the key: Globals.ERROR_KEY. You can implement
your ActionForm reset (which is called on all ActionForm objects on every
request) method to remove the ActionErrors found under this key from your
Request or Session.
Jonathan
-Original Message-
From: John
Note that when you hit the Back button on a page not cached and retrieved by
a GET, the browser will perform a new request... If the page was retrieved
by a POST, the browser will display an error message or ask the user if he
wants to repost the form.
Hookom, Jacob [EMAIL PROTECTED] wrote in
According to the ActionForm API, the reset() method is called before the
properties are repopulated by the controller servlet.
So by overriding it in your form, the field value should be reset prior to
the next action regardless the form scope.
-Erica
-Original Message-
From: apachep2
: session-scope ActionForm issue - confused
According to the ActionForm API, the reset() method is called before
the
properties are repopulated by the controller servlet.
So by overriding it in your form, the field value should be reset prior
to
the next action regardless the form scope.
-Erica
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 3:51 PM
To: [EMAIL PROTECTED]
Subject: session scope ActionForm
I am a bit confused about session scope of ActionForm.
For example, in my ActionForm testForm
private
6 matches
Mail list logo