aspose file tools*
The moose likes Struts and the fly likes Calling a LookUpDispatchAction from another Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Calling a LookUpDispatchAction from another Action" Watch "Calling a LookUpDispatchAction from another Action" New topic
Author

Calling a LookUpDispatchAction from another Action

kriegerd Salas
Greenhorn

Joined: Aug 01, 2005
Posts: 8
Hello everyone,

I was wondering if there was some kind of "default" method in a LookUpDispatchAction, so that I could use mapping.findForward() from another Action. I must call that LookUpDispatchAction exactly as if I were calling a "normal" Action, I can't add any parameters or attributes in the request/session.

Thanx in advance
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

It sounds like you want to chain Actions and I would consider some refactoring. The business logic from the DispatchAction should probably be moved out to a delegate so other actions can call the logic without having to chain to the DispatchAction.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a LookUpDispatchAction from another Action