Hi
I have the form info in my action and it passes the form's
validation, but if I add an error the displayed page doesn't have the form info.
The error displays properly, but I lose all the form data.?
Will the reset() method be called when a validation error occurs?
Sashi
A very similar discussion is taking place on irc.darkmyst.org 6667 right
now
-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:44 AM
To: [EMAIL PROTECTED]
Subject: lost form data when validate returns errors
Hi
I have the form info
reset()
populate()
validate()
I believe
sandeep
--- Sashi Ravipati [EMAIL PROTECTED] wrote:
Hi
I have the form info in my action and it passes the
form's
validation, but if I add an error the displayed
page doesn't have the form info.
The error displays properly, but I lose all the
bean back to nothing.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:04 AM
To: Struts Users Mailing List
Subject: Re: lost form data when validate returns errors
Dan,
I am having the exact
just
sets the member variables in the form bean back to nothing.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:04 AM
To: Struts Users Mailing List
Subject: Re: lost form data when validate
Dan,
I am having the exact same problem! In my struts-config.xml I have my formBeans set
to request scope, so I suspect that this causes the information in my form to
disappear. I don't want to have the bean persist for the whole session because users
will be coming back to this page.
.
-- Larry Maturo
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:04 AM
To: Struts Users Mailing List
Subject: Re: lost form data when validate returns errors
Dan,
I am having the exact same problem! In my
Re: lost form data when validate returns errors
Ted Husted wrote:
Dan Tanner wrote:
I'm having the problem of losing form data when my action class returns
errors. The error displays properly, but I lose all the form data.
If you are talking about form data that is generated by an Action
--- Ted Husted [EMAIL PROTECTED] wrote:
Calling reset is a prelude to autopopulation. Unless
the request is
being redirected along the way, this should just put
the same values
back into the ActionForm.
Reset must be called to ensure that the properties
for some controls,
like
I'm having the problem of losing form data when my action class returns
errors. The error displays properly, but I lose all the form data.
Looking at older posts, I've seen the same problem, but haven't seen a
fix or workaround yet. I've included the relevant code snippets.
Also, I like the
.
See-Yam
-Original Message-
From: Dan Tanner [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 2:11 PM
To: [EMAIL PROTECTED]
Subject: lost form data when validate returns errors
I'm having the problem of losing form data when my action
class returns
errors
--- Dan Tanner [EMAIL PROTECTED] wrote:
I'm having the problem of losing form data when my
action class returns
errors. The error displays properly, but I lose all
the form data.
Maybe there is an issue with the reset method in your
ActionForm? The validation error messages make sense?
Dan Tanner wrote:
I'm having the problem of losing form data when my action class returns
errors. The error displays properly, but I lose all the form data.
If you are talking about form data that is generated by an Action, and
not passed back through the HTTP request, then you may need to
I'm having the problem of losing form data when my
action class returns
errors. The error displays properly, but I lose all
the form data.
Maybe there is an issue with the reset method in your
ActionForm? The validation error messages make sense?
If they do then the data is being
14 matches
Mail list logo