Re: download a file inside WEB-INF use its URL on server

2009-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pierre, On 3/8/2009 1:05 PM, Pierre Goupil wrote: > Unfortunately it won't work as you will be unable to provide a valid URL for > anything inside WEB-INF. But maybe you can tell us why point 2 (use a > resource stream) doesn't suit you so that we can

Re: download a file inside WEB-INF use its URL on server

2009-03-09 Thread Gregor Schneider
Hi André! On Mon, Mar 9, 2009 at 1:15 PM, André Warnier wrote: > > I'm thinking of making it into a Wiki page in the Tomcat HowTo's. > Any objection ? > Are you talking about http://wiki.apache.org/tomcat/FAQ? I guess that would be a perfect place, hm? Cheers! Gregor -- just because your par

Re: download a file inside WEB-INF use its URL on server

2009-03-09 Thread André Warnier
Gregor Schneider wrote: On Mon, Mar 9, 2009 at 12:54 AM, Pid wrote: Gregor Schneider wrote: Have a beer and rethink your concept. Can we add that to Andre's list? will be a pleasure ;) Gregor I'm thinking of making it into a Wiki page in the Tomcat HowTo's. Any objection ? --

Re: download a file inside WEB-INF use its URL on server

2009-03-09 Thread Gregor Schneider
On Mon, Mar 9, 2009 at 12:54 AM, Pid wrote: > Gregor Schneider wrote: >> Have a beer and rethink your concept. > > Can we add that to Andre's list? > will be a pleasure ;) Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread Pid
Gregor Schneider wrote: > Have a beer and rethink your concept. Can we add that to Andre's list? p > Rgds > > Gregor - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread David Smith
henry human wrote: > Hi David, thanks for your answer. Let say the scenario is a little different > from my first mail. I am not going to download the xsd file by client. I m > using a entity resolver inside a JAVA class to resolve a xsd resource inside > the WEB-INF/xsd directory. There are t

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread André Warnier
henry human wrote: Hi I am using tomcat 6. I have a XSD file in the WEB-INF/xsds directory inside my web application on tomcat. I am trying to download a xsd file as follow: http://myServer:5200/MyWebApplication/xsds/cusomer.xsd Unfortunatelly it dows not work!!!? It always helps when you spe

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread Gregor Schneider
why can't you create an xsd-folder within your webapp? other than that, you could find out the real path within your app (HttpServletRequest.getRealPath()) and concat the path to dive into WEB-INF. Inside your app, you could also read the File as a normal InputStream. It's all about concepts & p

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread Pierre Goupil
> > > which expect a URL as systemId to find out a xsd file. > > --- David Smith schrieb am So, 8.3.2009: > > > Von: David Smith > > Betreff: Re: download a file inside WEB-INF use its URL on server > > An: "Tomcat Users List" > > Datum: Sonnt

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread henry human
th > Betreff: Re: download a file inside WEB-INF use its URL on server > An: "Tomcat Users List" > Datum: Sonntag, 8. März 2009, 17:18 > That's on purpose.  Clients > cannot directly access anything inside the WEB-INF > folder.  Your best solution is to move the f

Re: download a file inside WEB-INF use its URL on server

2009-03-08 Thread David Smith
That's on purpose. Clients cannot directly access anything inside the WEB-INF folder. Your best solution is to move the file outside it. -- David On Mar 8, 2009, at 11:36 AM, henry human wrote: Hi I am using tomcat 6. I have a XSD file in the WEB-INF/xsds directory inside my web appli

download a file inside WEB-INF use its URL on server

2009-03-08 Thread henry human
Hi I am using tomcat 6. I have a XSD file in the WEB-INF/xsds directory inside my web application on tomcat. I am trying to download a xsd file as follow: http://myServer:5200/MyWebApplication/xsds/cusomer.xsd Unfortunatelly it dows not work!!!?