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

  • Purchasing report for one time vendor

    Hi, I am using ECC 6.0 What standard report is available to display purchase order, GR and invoice belonging to one time vendor (CPD account group) ? Thanks for your help. Kind regards, Yann

  • Advantages of using SAP

    hai advantages of using SAP some implemented some manufating companys sridhar.v [email protected]

  • 500 Connection timed out when in SXMB_MONI in "Call Adapter"

    Hi, We are using SOAP as a receiver adpter. It is working fine all the time but some times we are getting "500 Connection timed out" error in SXMB_MONI in the "Call Adapter" then it retries again and it works fine but I want to know why we are gettin

  • Query regarding inner join

    Hi Can anyone explain me the error in this select query and give me the correct answer. select 1begda 1endda 2kostl 2persg 2anvsh 3pernr into corresponding fields of table i_emp from ( ( pa0000 as 1 innerjoin pa0001 as 2 on 1pernr = 2pernr ) join pa0

  • Safari and Mail not recognizing IP/network after picking up new WiFi?

    Very strange behavior that has happened numerous times - and I can't figure out what is going on.  The situation is that when I travel to school and connect to the wifi network there, I'm having issues with Mail (5.1) and Safari (5.1.2).  Network CP