This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Execute Method of Struts Action Class not Executing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Execute Method of Struts Action Class not Executing" Watch "Execute Method of Struts Action Class not Executing" New topic
Author

Execute Method of Struts Action Class not Executing

amit mawkin
Ranch Hand

Joined: Oct 31, 2001
Posts: 73
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 ]

regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
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.


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
amit mawkin
Ranch Hand

Joined: Oct 31, 2001
Posts: 73
Hi David,
Indeed it was wrong, thanks for your help, I guess too much coffee for me
couldnt realize this simple mistake.
 
jQuery in Action, 2nd edition
 
subject: Execute Method of Struts Action Class not Executing
 
Similar Threads
Struts Validator Plug-In
which are the main packages to import while writing a strut app?
Store portlet preferences in struts portlet
compilation error
How to forward past index.jsp