Used return mapping.getInputForward(); with no change in the result. Tarek Nabil <[EMAIL PROTECTED]> wrote: Not that it has anything to do with your problem, but why are you doing it this way? Why don't you do
return mapping.getInputForward(); -----Original Message----- From: Pat Slater [mailto:[EMAIL PROTECTED] Sent: Sunday, April 30, 2006 7:22 PM To: user@struts.apache.org Subject: mapping.getInput() When returning back to the input html form page on Exception, mapping.getInput() returns correctly to that page but the form-fields entered by the user are not there anymore..... This is a part of my code: public ActionForward saveMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //...................... try { myWork = saveMyWork(); //This throws a DateFieldException } catch(DateFieldException e) { ActionMessages errors = new ActionMessages(); ActionMessage error = new ActionMessage( "errors.detail",e.getMessage() ); errors.add( ActionMessages.GLOBAL_MESSAGE,error ); saveErrors( request,errors ); return new ActionForward( mapping.getInput() ); //return mapping.findForward( "failureDate" ); } //............ } Has anybody experienced this? --------------------------------- Yahoo! Mail goes everywhere you do. Get it on your phone. ********************************************DISCLAIMER******************************************** This email and any files transmitted with it are confidential and contain privileged or copyright information. If you are not the intended recipient you must not copy, distribute or use this email or the information contained in it for any purpose other than to notify us of the receipt thereof. If you have received this message in error, please notify the sender immediately, and delete this email from your system. Please note that e-mails are susceptible to change.The sender shall not be liable for the improper or incomplete transmission of the information contained in this communication,nor for any delay in its receipt or damage to your system.The sender does not guarantee that this material is free from viruses or any other defects although due care has been taken to minimise the risk. ************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.