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 !
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.
Joined: Jan 25, 2005
That was exactly the problem. I replaced all the perform() with execute() and it seems to work fine now. Thanks