commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Poulard <Philippe.Poul...@sophia.inria.fr>
Subject [VFS] the "web" scheme
Date Fri, 20 May 2005 07:28:59 GMT
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


Mime
View raw message