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/02/14 10:23:47 UTC
[NEWB]how to get a working dir/context path
Hello,
i`m writing an interceptor, in it i read file, which is in my context path, so when i get System.getProperty("user.dir") - working dir, i get tomcat base dir.
is there any other way to get context dir?
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=14412#14412
-------------------- m2f --------------------
RE: [NEWB]how to get a working dir/context path
Posted by Apache <ap...@ss78.shared.server-system.net>.
@InjectObject("service:tapestry.globals.ServletContext")
public abstract ServletContext getServletContext();
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=14422#14422
-------------------- m2f --------------------