• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a LookUpDispatchAction from another Action

 
kriegerd Salas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic