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 Struts- action class 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 "Struts- action class" Watch "Struts- action class" New topic
Author

Struts- action class

S bitz
Ranch Hand

Joined: Jan 20, 2006
Posts: 80
Hi,
I'm a newbie in Struts and this is the problem that i am facing. The code is as follows...

NameBean



BeanAction



My struts config file


When i run this, there is only a blank screen and nothing else. I am not even able to get where the fault is.

I tried to debug the application and what happens is after reaching this code,

public final class BeanAction extends Action {

it doesn't proceed further and all i get is a blank screen.



Can anyone help me with this.
Thanks
Bitz
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Change the method name from perform to execute

Use try and catch block inside execute method and see any Exception is caught.
S bitz
Ranch Hand

Joined: Jan 20, 2006
Posts: 80
Thanks,
The problem was solved by changing from perform to execute.

Bitz.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts- action class
 
Similar Threads
Struts Action not Forwarding to jsp........
Struts 1.3 Error messages displaying improperly on jsp
Where should I perform validation with database connectivity?
Problem while creating Struts application
Error creating form bean of class Problem