• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with action

 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was exactly the problem. I replaced all the perform() with execute() and it seems to work fine now. Thanks
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic