What's the xml for this?

I am running on a tomcat server and have not been able to find what the xml is to create a uri to a resource other than a servlet. how do I edit the web.xml file to create a uri to a webpage or image?

To give you an example of what I am talking about (I'm the author of the post, this is just a diff acount) if I wanted to make a uri to link to a servlet on tomcat I would add this to the web.xml file in WEB-INF:
<servlet>      
<servlet-name>Anything</servlet-name>
<servlet-class>Name of servlet class (w/o .class at the end)</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>The servlet name defined above</servlet-name>      
<url-pattern>(Anything i'll use->) /Servlet/</url-pattern>
</servlet-mapping>
then when you want to link to the servlet in say, a form you would write the following in an html file:
<form action="/Servlet/" method="Post">
you can do the same thing with a link:
text
What I am curious to know is: How do I do this if I want the uri to link to an image? (I know for a page I can just link to a servlet that just forwards you to a page) I've tried changing the servlet-class to another resource, but that doesn't work. Does anyone know how to do this?

Similar Messages

Maybe you are looking for

  • How to install photoshop without disk but with serial number

    Any ideas on how to install a permission of PS if I've lost the installation disk but do have the serial number?

  • SNMP Monitoring Agent for OAM (COREid) - Share your experiences

    I'm interested in hearing from anyone who has successfully implemented the monitoring agent. I would like to hear how you implemented the agent and how you consume the traps as well as any reactive automation that you may have also implemented to res

  • Compact Flash Reader Needed

    Hello. I'd really like to get a compact flash reader for my 30GB iPod video, but the only one made appears to be the Belkin one -- and everyone says it's SUPER S-L-O-W. That won't work for me because I shoot RAW and each of my files is 12MB. I have a

  • Besoin d'aide urgent pour restore l'iphone

    Bonjour, suite au décès prematurée de mon premiere iphone 3gs je decide de m'en racheter 1 (d'occasion) . Quand je les allumer j'avais un ecran normal avec en arriere plan de l'ecran de verrouillage IOS6, jai deverouiller lécran et je suis tomber sur

  • Can we delete members in dimension in Planning application using HAL

    <p>Hi</p><p>i added nearly 100 members in planning application usingHAL.</p><p>i wanted to delete those members. can i use HAL to deletemembers in dimension using HAL.</p><p>thanks,</p><p>Balu.</p>