File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with LookupDispatchAction

 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
basha khan
Ranch Hand
Posts: 516
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did u override getKeyMethodMap method in ur last child class ?.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I din't get clearly could you explain more specific ?

Thanks
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already have getKeyMethodMap defined in the child action class.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one answer this ?
 
Vicky Pandya
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic