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.

Reply via email to