Actually, I wasn't indicating it should be any different, I just meant that 
it's an easier and more straightforward way of doing it.

________________________________

From: Pat Slater [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 02, 2006 7:35 PM
To: Struts Users Mailing List; Tarek Nabil
Subject: Re: FW: mapping.getInput()


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 
<http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
  to the US (and 30+ countries) for 2ยข/min or less.
********************************************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.
**************************************************************************************************

Reply via email to