• 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

Problem with LookupDispatchAction

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the flow

1.I have a ListAction extends BaseAction.
2.ListAction has a method
public ActionForward docList(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

System.out.println("Heloo I am here *********************");
return mapping.findForward("listPage");
}
2.BaseAction extends LookupDispatchAction
Base action overrrides execute method for doing some authentiucation.
When the request comes, the execute method being called in BaseAction and After completing ececute method in BaseAction the control is not coming to child class(ListAction) and not executing docList method.

Can some one explain me how to do this?
 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did u override getKeyMethodMap method in ur last child class ?.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I din't get clearly could you explain more specific ?

Thanks
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I already have getKeyMethodMap defined in the child action class.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some one answer this ?
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how are you calling docList method from jsp? I believe you are not calling this method correctly. post your code.
[ December 15, 2005: Message edited by: Vicky Pandya ]
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is a working application without any problem when my childAction extends LookupDispatchAction. Here is the sample code from JSP,ofcurse it is calling edit method in my Action class.

I tried to copy the code from JSP and website now allowing me because of html coding.

Now I changed as follows.

ChildAction extends BaseAction
BaseAction extends LookupDispatchAction

BaseAction overrides execute method for doing some authentication then it shoud call appropriate childAction method to excute. Which is not happening.

Thnaks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in the execute() method of BaseAction, are you calling the execute method in the superclass with "forward = super.execute(...)"? If not, this may be the problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic