Turn validation off in your struts config and manually in your action. Otherwise, when form validation fails, it will go to your input location. If manual validation invokation doesn't work for you, then you probably want to use the "us an action as input parameter" suggestion.
David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company > -----Original Message----- > From: Mark R. Diggory [mailto:[EMAIL PROTECTED] > Sent: Monday, June 21, 2004 6:33 PM > To: Struts Users Mailing List > Subject: Pulling Punches > > > Here's an interesting one for ya. > > I have a struts action in which I use the "input" parameter > to forward > back to the jsp when validation errors occur (pretty basic). > There is an > instance where an object could be stale once the browser gets into my > Actions execute method, when this is encountered the action > forwards to > an error page that provides a message. This way if anyone > bookmarks the > action, I can show something better than a stack trace when > they return > to the page. > > My problem is that I get forwarded back to the input form without > execute occuring and teh stale object being encountered! When > returning > via a bookmark, I get dumped into the JSP designated in the input > attribute. Is there any way I can execute some code to verify > the object > is not stale BEFORE validation occurs? > > What it really boils down to is this. Is there a way I can cause an > ActionForward before ActionForm.validate occurs? > > -Mark > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]