Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Execute Method of Struts Action Class not Executing

 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am trying to call an EJB from struts action class, I used a POJO in delegating the struts calls to EJB and getting the result back, I tried the POJO through a command line client and its performing well, the problem is when I submit the form, The FormBean executes successfully as well as I can see that the constructor of ActionClass also executes, but thats it, then it stops and do nothing , I have put a println statement as the first line in execute method but that also is not executing.
I am using Bea weblogic 8.1

any suggestions. My action class is below



[ August 31, 2004: Message edited by: amit mawkin ]
[ August 31, 2004: Message edited by: amit mawkin ]
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your method signature on execute is wrong. Look closely and compare this one to your own:


See it? Your signature is expecting "HttpServlet response" as the final parameter. If you properly override the default implementation, your action will work.
 
amit mawkin
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
Indeed it was wrong, thanks for your help, I guess too much coffee for me
couldnt realize this simple mistake.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic