struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Slater <>
Subject Re: FW: mapping.getInput()
Date Tue, 02 May 2006 15:35:02 GMT
Used return mapping.getInputForward(); with no change in the result.

Tarek Nabil <> 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 [] 
Sent: Sunday, April 30, 2006 7:22 PM
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
  public ActionForward saveMethod(ActionMapping mapping, ActionForm
           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.
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
or the information contained in it for any purpose other than to notify us of the receipt
If you have received this message in error, please notify the sender immediately, and delete
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be liable for the
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
viruses or any other defects although due care has been taken to minimise the risk.

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

Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min
or less.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message