struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Joyce" <>
Subject Re: R: request attributes and failed validation
Date Mon, 02 Feb 2004 12:08:46 GMT
>>> 02/02/04 03:18 AM >>>
> Using an Action as "input" sometimes takes more work.  Your action should
> know that it's only redisplaying a form and not reset all form values (or
> else the user will have to reinput everything instead of just correct the
> validation error).  

How do you usually do this? Using an hidden parameter?

That's one way to do it.  This is how I ended up doing it.

// Validation failed, don't reset the form.
if (request.getAttribute("myForm") != null) {
  return mapping.findForward("success");

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

View raw message