You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Philippe Poulard <Ph...@sophia.inria.fr> on 2005/05/20 09:28:59 UTC
[VFS] the "web" scheme
hi,
i currently try to use VFS in a webapp, and of course, I have to deal
with web resources :
ServletContext#getServletContext()
so, I've had the idea of using VFS to resolve such resources, like the
"res" scheme does for ClassLoader resources, like this :
web:///WEB-INF/web.xml
that would be map to :
file:///path/to/tomcat/webapps/myApp/WEB-INF/web.xml
usage :
FileObject file = myFileSystemManager.resolveFile(
"web:///WEB-INF/web.xml" );
file.getContent().setParameter( "web-context", myServletContext );
file.getInputStream();
...
advice ?
--
Cordialement,
///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [VFS] the "web" scheme
Posted by Philippe Poulard <Ph...@sophia.inria.fr>.
oops !
read this:
ServletContext#getRealPath()
--
Cordialement,
///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org