This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Problems with action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problems with action" Watch "Problems with action" New topic
Author

Problems with action

vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
Hello all,

I am struggling with a struts application that I am working on. Everything seems to be correct, but it doesn't work. I have a jsp, 'Index.jsp' which is like this :


There is a mapping for the "/surveyListing.do" inside the struts-config.xml, which is like this:



and the bean for "surveyForm" has been defined inside the struts-config.xml as follows:



Now, when I click on the link for "/surveyListing.do", I just get a blank screen and nothing seems to happen, I have put debug statements in both the 'SurveyForm' and 'ResponseSurveyListAction', but none of them get printed. I am stuck with this problem for a few hours now, and I have tried everything. Please help !
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
Which version of Struts are you using? Depending on the version, you would have to either implement the execute() or perform() method. That could be one of the reasons why you are getting a blank page. If you are using perform() method, try replacing it with execute() method. Also check if you are forward is not returning null.
vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
That was exactly the problem. I replaced all the perform() with execute() and it seems to work fine now. Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with action
 
Similar Threads
Attempted a bean operation on a null object.
Problems with firsttruts Application
Trying to Learn Struts: Errors
Problems with first Struts Application - please help...
Problem with resource bundle