Hello Sridhar,

 Hm.. But why do you place validate="false" attribute to the action
 mapping? I think it switch off validate process.

     validate        Set to "true" if the validate() method of the form bean
                     should be called prior to calling this action, or set to
                     "false" if you do not want validation performed.
 

Wednesday, June 13, 2001, 10:14:23 AM, you wrote:

SS> Thank U Oleg,

SS> But like I mentioned earlier if I remove the input tag, it gives me a page
SS> not found error!!!!

SS> Ne more hints???

SS> -----Original Message-----
SS> From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]]
SS> Sent: Wednesday, June 13, 2001 1:22 AM
SS> To: [EMAIL PROTECTED]
SS> Subject: Re: Forward Problem


SS> Hello Sridhar,

SS> Try to remove 'input' attribute from action mapping. I view
SS> validate=false here - you are not use validate after form submitting -
SS> why do you specify input attribute?

SS> Here is quote from struts-config.dtd -

SS>      input           Context-relative path of the input form to which
SS> control
SS>                      should be returned if a validation error is
SS> encountered.
SS>                      Required if "name" is specified and the input bean
SS>                      returns validation errors.  Optional if "name" is
SS>                      specified and the input bean does not return validation
SS>                      errors.  Not allowed if "name" is not specified.



SS> Tuesday, June 12, 2001, 5:49:55 PM, you wrote:

SS>> Hi All,

SS>> We are using Struts Version 1. We are having a problem with the forward
SS> tag
SS>> of the action defined in struts-config.xml.
SS>> No matter what is defined in the forward it is going to the page defined
SS> in
SS>> input.

SS>> I am attaching a part of the struts-config for clarity:

SS>>     <action    path="/registerFormAction"
SS>>                type="net.itcube.bsts.user.register.RegisterFormAction"
SS>>                name="registerForm"
SS>>               scope="session"
SS>>              input="/Register.jsp"
SS>>            validate="false">
SS>>       <forward name="success"           path="/PostRegistration.html"/>
SS>>     </action>


SS>> Once the action is performed action.findForward returns "success" (This
SS> we
SS>> checked!!!). But still the page in the above case goes to Register.jsp
SS>> instead of PostRegistration.html.

SS>> If we remove the input tag it gives a 500 page not found error.

SS>> We have successfully deployed a project on struts with an earlier
SS> version
SS>> and never faced such a problem.

SS>> Can someone please throw some light on it????


SS>> Cheers,
SS>> Sridhar S
SS>> You must be the change you wish to see in the world
SS>>  --- Mahatma Gandhi.




SS> --
SS> Best regards,
SS>  Oleg                            mailto:[EMAIL PROTECTED]






-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]


Reply via email to