tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Vázquez <>
Subject Re: web.xml servlet and resources
Date Thu, 30 Jan 2003 12:22:01 GMT

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 folder, and
you put your image like <img src="images/mygif.gif">...

Remember that the images are retry by new request to the server by the
navigator (http://mihost/images/mygif.gif) for each img html token.


----- Original Message -----
From: "Richard Wallace" <>
To: <>
Sent: Thursday, January 30, 2003 1:17 AM
Subject: web.xml servlet and resources

> Hello all,
> This is a fairly simple problem but I haven't been able to find an
> answer anywhere (I've been looking for the past day or two).  I'm hoping
> this is a common situation and is possible, but from what I've seen I
> can't see how.
> What I want is for the resources (images, css files, etc.) to be in a
> path relative to the servlet.  So, if I have an images directory and the
> servlet URL is, the images should be
> accessible from this URL,
> So, I want to set the URL pattern for some-servlet to be /.  If I do
> that then every URL beginning with that will be grabbed by the servlet,
> including (as an
> example).
> Suggestions?  Thanks.
> --
> Richard Wallace
> AIM, Inc. (
> Information Systems Consultants
> "Providing New Technology,
>      the Old-Fashioned Way"
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message