Hi All,
Greetings!!!
My requirement is,using Dispatch Action in Struts1.3, on clicking Cancel button it
takes to another page, say home page..
as for now i tried:
I have Upload and Cancel methods in my
jsp .. i extends Dispatch action in my action class
In struts-config.xml, I put parameter called service..
everything worked except Cancel button.. Following are cancel related lines:
in jsp,
in struts-config.xml,
When jsp has <html:cancel /> i get following error:
when jsp <html:cancel property="service" /> i get following error:
for the above error i put a method in action class like the following :
public ActionForward Cancel(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response){
return mapping.findForward("Cancel");
}
and changed <html:cancel property="service" value="Cancel" />
and added <forward name="Cancel" path="/home.jsp" />
still i didnt get the answer...
I hope you got my points clearly.. Any help would be appreciable
Cheers!!!
Unnii