You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Heath Chiavettone <HC...@ariba.com> on 2002/04/01 23:55:01 UTC

ActionForward integration question

It seems that I may have biased this question with the title I used on the
struts-users list since I didn't get any answers.  So perhaps you dev guys
might be able to help me:  Here is my question:

 

We have a resource management scheme that will take a relative pathed
resource, and for a particular user (based on some session variables) will
resolve this relative pathed resource into an absolute resource (i.e. if the
user belongs to "ACME" company, we will resolve the resource

jsp/SomePage.jsp into /brands/acme/jsp/SomePage.jsp).  I want to be able to
define my <forward> definitions as relative paths, and somehow insert our
resource manager in between the returning of the (relative) ActionForward
from the Action.execute() call and the actual RequestDispatcher "forwarding"
mechanism.  The only method parameter I would need to be able to resolve the
resource is the HttpServletRequest.

 

Is this scheme even possible in Struts 1.1?

 

If not, is there an alternate to this that doesn't involve me having
forwards for every possible configuration?

 

Thanks,

 

Heath