Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping an image in Web.xml?
 
Similar Threads
struts 2 file upload problem
Mistakenly changed web.xml
Need suggestion regarding an issue related to content type header
jpa2web with tomcat problem
How to reference images in Velocity templates