• 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

methods dispatch action

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can i write our own methods in our own action extends dispatch action just like cancel,update,reset with the normal signature as follows.

public class MyDispatchAction extends DispatchAction{
public ActionForward methodName(ActionMapping mapping,ActionForward forward,ServletRequest req,ServletResponse res){
}
}
with out writing execute method.and also can i write them in direct sublass of Action can this fulfill my condition as DispatchAction do
and also one more doubt
does the container creates object to DispatchAction or MyDispachAction or Action and there by calling methods.if it creates object to MyDipatchAction and refered by DispatchAction identifier.I think this is related to core java.please explain me i am in confusion.
thanks for your anticipation
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic