On Tue, 6 Feb 2001, John Thorhauer wrote:

> How can I access getRealPath() from outside of the services?  Is there a way 
> to get the ServletConfig or the realpath from the ResourceService?

Can we make a getRealPath(path) method available to all non-services
classes as well? For example I have actions that upload files, and
I would like to be able to upload these within the webapp.

I can use the RunData object to get the servlet context, but the
need will probably arise where you will want to access the webapp
path from a class that doesn't have access to the RunData object.

Could we have something like:

TurbineResources.getRealPath(path)

for this? If so I will add it. It would just be nice to have
one clean way of getting the webapp path.

jvz.



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to