File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Mapping an image in Web.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Mapping an image in Web.xml? " Watch "Mapping an image in Web.xml? " New topic

Mapping an image in Web.xml?

Andrew Mcmurray
Ranch Hand

Joined: Sep 24, 2005
Posts: 188
Hi all

Is it possible to map a url to an image in web.xml? For example if I had an image file stored it in the webApp\images dir and changed its ext from .jpg to .abc could I some how have an HTML page display that image, without renaming the image file by mapping it some way in the web.xml?


I agree. Here's the link:
subject: Mapping an image in Web.xml?
jQuery in Action, 3rd edition