Reusable action classes
1 posts in topic
Flat View  Flat View

Posted By:   Ranjiith_Selvarjan
Posted On:   Tuesday, December 11, 2001 06:29 AM

Is there a way by which one Action class could pass an ActionForward into the reusable Action class and when that reusable Action class is done it can forward back to the calling Action class?

Re: Reusable action classes

Posted By:   Ted_Husted  
Posted On:   Wednesday, December 12, 2001 06:13 PM

The most reliable way would be for the first class to also
pass the return path. One way to do that would be to
extend the ActionForward class to provide for another
property. The same basic idea as the input property
on the ActionMapping. You can then specify the new class in the web.xml.

Alternatively, you can save a return path in the
session under a known attribute, and have your classes
look for that before returning a nominal forward.

HTH -Ted

About | Sitemap | Contact