• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Action not Forwarding to jsp........

 
Sravan Alaparthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
//Employee FormBean Class



Employee ActionClass



Struts Configuration File




When i deploy the Application and press Search button @index.jsp instead of displaying success.jsp it is displaying a blank page with the url:

http://localhost:7001/StrutsPrac/success.do

Any help is greatly appreciated
 
Sravan Alaparthi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Problem was the execute method is not being called.......

The Best way is to use Annotations and make sure the execute method is properly Overridden....

for Example in the case of above code: change action class to

@Override public ActionForward execute(ActionMapping mapping, ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) throws Exception {

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic