aspose file tools*
The moose likes Servlets and the fly likes Problem in making a servlet a default servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem in making a servlet a default servlet" Watch "Problem in making a servlet a default servlet" New topic
Author

Problem in making a servlet a default servlet

Mrutyunjay Hanchinal
Ranch Hand

Joined: Sep 26, 2001
Posts: 50
Hi
I am experiencing a problem with making a servlet as default servlet.
According to servlet 2.2 by use of Servlet mapping tag in web.xml I can make a servlet as default servlet for an application.
If I do that whatever may be the request, the request is being routed to servlet.
For Ex: If I access http://localhost or http://localhost/login.jsp
The request is being sent to my default servlet
Please help on how to avoid the request being routed to default servlet when it is not meant to it (i.e. when I specifically access http://localhost/login.jsp, it should invoke login.jsp and not default servlet)
Thanks
Mrutyunjay
 
 
subject: Problem in making a servlet a default servlet