• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Execute Method of Struts Action Class not Executing

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic