Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts- action class

 
S bitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
The problem was solved by changing from perform to execute.

Bitz.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!