This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Calling a LookUpDispatchAction from another Action
 
It's not a secret anymore!