This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Mapping an image in Web.xml? " Watch "Mapping an image in Web.xml? " New topic
Author

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?

Thanks,

AM
 
Don't get me started about those stupid light bulbs.
 
subject: Mapping an image in Web.xml?
 
It's not a secret anymore!