File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problems with action" Watch "Problems with action" New topic

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 "/" 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 "/", 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:
subject: Problems with action
It's not a secret anymore!