I m developing a small struts application. In my application after filling values in jsp page and submiting that form, my Action implementation class(SearchAction) is not getting called whereas ActionForm imlementation class(SearchForm) is printing values on server console.
How do you know that the Action is not getting called? What is happening on the browser window?
A good workman is known by his tools.
Joined: Nov 04, 2004
browser is blank, and i concluded that action is not getting called because s.o.p. written in ActionForm implemented class(SearchForm)are getting printed on tomcat console but not of Action implemented class(SearchAction).My first line in execute method of SearchAction is S.o.p(System.out.pri....) which is not printed.
check syntax of your execute method it should be public ActionForward(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) in that order because u r overriding this method from struts Action class