my dog learned polymorphism*
The moose likes Struts and the fly likes Struts Action not Forwarding to jsp........ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Action not Forwarding to jsp........" Watch "Struts Action not Forwarding to jsp........" New topic
Author

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

Sravan Alaparthi
Greenhorn

Joined: Nov 07, 2011
Posts: 2
//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

Joined: Nov 07, 2011
Posts: 2
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 {

 
wood burning stoves
 
subject: Struts Action not Forwarding to jsp........
 
Similar Threads
Cannot Find Bean inscope null
Hi i am trying to connect to postgresql database using struts 1.2..i have used datasource
error in my struts application no getter methods
null pointer exception in struts 1.1
Runing an example struts application