I would achieve this be configuring my web.xml. Try this piece of code
<servlet>
<servlet-name>MyServlet</servlet-name>
<jsp-file>/webReg.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/webReg</url-pattern>
</servlet-mapping>
So when to submit a URL "http://localhost:8081/webReg" to your container
it maps to the jsp file under the <servlet> element.
Vinod
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 17, 2005 7:05 AM
To: [email protected]
Subject: web.xml
Hi there,
i think this is a fairly easy thing to do, but i'm a newbie to tomcat &
jsp.
I am requesting the following url
_http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp)
which
exists and dsiplays fine. However, i want to be able to request
_http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for
tomcat to display
_http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) .
What do i need to add in web.xml?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]