You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Apache <ap...@ss78.shared.server-system.net> on 2006/04/24 10:48:17 UTC

Real path of web application

Hi, how do I find out the absolute web application path? I had tried IRequestCycle.getAbsoluteURL("/") but it seems its 'absolute' does not refer to filesystem. Is there something like ServletContext.getRealPath("")?

Thanks,
Stanly


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=14730#14730

-------------------- m2f --------------------



RE: Real path of web application

Posted by Apache <ap...@ss78.shared.server-system.net>.
Thanks alot!


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=14736#14736

-------------------- m2f --------------------



RE: Real path of web application

Posted by Apache <ap...@ss78.shared.server-system.net>.
To do this You must inject WebContext object:
        

And in code this object has method getRealPath which has same functionality like ServletContext.getRealPath()

It is available in version 4.0.2


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=14733#14733

-------------------- m2f --------------------