I am using Spring with Struts... so type is a DelegatingActionProxy the real 
action bean is defined in a separate config file which is not important here.  
But the part of the struts-config file is here:
           <action    path="/actions/subManager/saveMethod" 
      type="org.springframework.web.struts.DelegatingActionProxy"    
scope="request"          parameter="method"           name="workEntry" 
     input="/WEB-INF/pages/workeffort/getWeForm.jsp">
  <forward name="success" path="/actions/user/getWorkPage.do"/>^M
  <forward name="failureDate" path="/WEB-INF/pages/workeffort/getWeForm.jsp"/>
        </action>
  I have also defined html:errors tag in the input html-form.
<html:errors/>
All of this looks normal as defined in the struts documentation guide.. I am 
not sure what I am missing here.
  
sudip shrestha <[EMAIL PROTECTED]> wrote:
  Can you post your struts-config file here as well....

--- sudip shrestha wrote:

> Is there some sort of setting that I am missing
> here? 
> I would appreciate any kind of help.
> 
> 
> 
> --- Pat Slater 
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]



                
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Reply via email to