struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Slater <pslate...@yahoo.com>
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 <Tarek.Nabil@tco.ae> 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:pslater33@yahoo.com] 
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



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