struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Naskovski <>
Subject Re: Can a form bean be repopulated w/same data if 'validate()' fails?
Date Fri, 18 Jul 2003 03:00:08 GMT
Nevermind this question. I was creating a new form bean everytime in the
Load (prepopulate) action, thus I kept overwriting the stuff that is
already there. I feel like a moron.. I ask a question, then 5 minutes later I find
the answer myself. My apologies.


Thursday, July 17, 2003, 7:42:18 PM, you wrote:

MN> I am curious, I cannot get the form to reappear with the data that I am
MN> validating. I've implemented the validate() method on my ActionForm, it
MN> validates ok, but I would like to have the data that was on the form
MN> (regardless of whether the data was correct or not) repopulated.

MN> I tried something like:

MN> request.setAttribute("userSignupForm", this);

MN> in the validate(), in my ActionForm, but it doesn't seem to phase it. I
MN> also tried in both, the session and the request scopes.

MN> I couldn't really dig out any information on how to change this behavior,
MN> or maybe I'm just not looking hard enough.

MN> Does someone know how to do this?

MN> Thank you.

MN> Martin

MN> ---------------------------------------------------------------------
MN> To unsubscribe, e-mail:
MN> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message