> Hello Sir,
> Thanks for your suggestion..
> Sorry for the typing mistake...it is WEB-INF and not WEB_INF...
> I have the AppSelectionServlet under ,
> "webapps/web/WEB-INF/classes/com/servicelane/screens/AppSelectionServlet.class"
> and also under "webapps/web/sl/servlet/AppSelectionServlet.class".

You _don't_ need to put classes under web/sl/...

Here's my brief, with plenty of shortcuts, but may help you removing the
other .class file ;), anyway:

url-pattern can be (almost) anything, like:
<servlet-mapping>
  <servlet-name>Index</servlet>
  <url-pattern>/index.html</url-pattern>
</servlet-mapping>

When a server receives a request, say "/web/index.html", it looks
for an url-pattern that matches the request. The pattern above matches the
request. Then the servlet is chosen: the request is for servlet named
"Index". The correct servlet class is resolved from:
<servlet>
  <servlet-name>Index</servlet>
  <servlet-class>com.a.b.IndexServlet</servlet-class>
</servlet>

..and the servlet will be loaded from:
/web/WEB-INF/classes/a/b/IndexServlet.class

Finally: url-patterns are NOT directories on your computer.

I hope it helped.

-Kai

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to