aspose file tools
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 Head First Android this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mapping an image in Web.xml?
 
It's not a secret anymore!