File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet alias in context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet alias in context" Watch "servlet alias in context" New topic

servlet alias in context


Joined: May 03, 2004
Posts: 5
hay friends, i m using tomcat 4 on win 2k system.
i have created context in tomcat named world.
i mapped servlet name helloworld in it such that when i hit
http://localhost:8080/world/servlet/helloworld my servlet runs.
is it possible to give an alias name to my servlet "helloworld" to
"helloweb" ???
what modification i required in web.xml ??? or other ???
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"TECH ZALA"- This is your second notice.
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
Thanks! and welcome to the JavaRanch!

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Use following tags in Web.xml
I agree. Here's the link:
subject: servlet alias in context
jQuery in Action, 3rd edition