Can you post your struts-config file here as well.... --- sudip shrestha <[EMAIL PROTECTED]> wrote:
> Is there some sort of setting that I am missing > here? > I would appreciate any kind of help. > > > > --- Pat Slater <[EMAIL PROTECTED]> wrote: > > > I have an method in a class that extends > > DispatchAction that throws Exception such as: > > 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" > > ); > > } > > //............ > > } > > This method is invoked on a form post of a > html-form > > (input form). > > Here everything is working as expected except that > > when the exception is thrown it takes me back to > the > > original input form, but the input values are not > > populated in the html-form anymore. All the text > > fields are blank... Is this something that has to > > do something with returning ActionForward.... I > > obviously want those html-form fields to stay > > populated on the event of the exception, so that > the > > user does not have to reenter all the fields > except > > the field with the problem. > > Any help is highly appreciated. > > > > > > --------------------------------- > > Yahoo! Messenger with Voice. Make PC-to-Phone > Calls > > to the US (and 30+ countries) for 2ยข/min or less. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]