struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: [SCAFFOLD] How get application context path
Date Thu, 18 Sep 2003 22:45:02 GMT
If you need the application's path, then I wouldn't recommend using a 
ProcessAction. These are meant to be a fast lane to the business layer. 
The business layer shouldn't need to know the application's path.

If you need to load a resource into application scope, then use a 
plug-in or another servlet to load it under a known key. Then it can be 
accessed through the servlet context like anything else.

-Ted.

Lázaro Miguel Fung wrote:
> Hi.
> 
> How I can get my application's path to use it inside a ProcessAction.
> 
> TIA
> LFung
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 

-- 
Ted Husted,
   Junit in Action  - <http://www.manning.com/massol/>,
   Struts in Action - <http://husted.com/struts/book.html>,
   JSP Site Design  - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message