Re: RE: web.xml servlet and resources

2003-02-22 Thread Vernon Wu
After sent out the previous email, I just recoginzed the orginal one was more than two weeks ago. Sorry for unwanted reply. 22/02/2003 3:46:48 PM, Vernon Wu <[EMAIL PROTECTED]> wrote: >One way to deal with this issue is to break down the file type in the "someservlet" >directory rathen than

Re: RE: web.xml servlet and resources

2003-02-22 Thread Vernon Wu
One way to deal with this issue is to break down the file type in the "someservlet" directory rathen than having a URL mapping for the whole directory. Say for all JSP files, you have > >TheServlet >/*.jsp > Hope this helps. 30/01/2003 10:40:33 AM, Richard Wallace <[EM

RE: web.xml servlet and resources

2003-01-30 Thread Richard Wallace
On Thu, 2003-01-30 at 05:43, Daniel Brown wrote: > Richard, > > You could use HttpServletRequest.getPathInfo() to read the extra path > information after servlet name, read the corresponding object from disk, set > an appropriate MIME type, and then send the object back in the response. > > But i

RE: web.xml servlet and resources

2003-01-30 Thread Sean Dockery
Look in the J2EE docs for HttpServletRequest.getPathInfo. Sean Dockery [EMAIL PROTECTED] -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 17:17 To: [EMAIL PROTECTED] Subject: web.xml servlet and resources Hello all, This is a fairly

RE: web.xml servlet and resources

2003-01-30 Thread Daniel Brown
Richard, You could use HttpServletRequest.getPathInfo() to read the extra path information after servlet name, read the corresponding object from disk, set an appropriate MIME type, and then send the object back in the response. But it's a lot of new code for something that doesn't seem like a go

Re: web.xml servlet and resources

2003-01-30 Thread Lindomar
Hi Richard, if i didn't understand wrong If you want put a image using relative path, the source of your image must be src="/yourApp/images/logo.gif", for example. Good luck! - Original Message - From: "Richard Wallace" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Janu

Re: web.xml servlet and resources

2003-01-30 Thread Antonio Vázquez
Richard, Usually the servlet are in the WEB_INF directory, and this is forbidden for the users. If you put an image inside web-inf/servlet/images.. you will not be able to retry it. You cannot use the url .../web-inf/images/... Usually you create a image folder at the same level that WEB_INF fold