You may try it this way:
(1)In your servlet code add "package xxx" and compile it
(2)this should put the "class" file of this servlet under
/examples/servlet/xxx/
(3)In the web.xml
<servlet>
<servlet-name>
ServletX
</servlet-name>
<servlet-class>
xxx.ServletX
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
ServletX
</servlet-name>
<url-pattern>
/xxx/ServletX
</url-pattern>
</servlet-mapping>
Note:it will work even with the url-pattern "/ServletX" (without the
url-pattern being "/xxx/ServletX"),but in your case you want with the
/xxx/ServletX
Try modifying these two in anyway u want and see if u can get it working
>From: LUN <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Nested Servlet Zone
>Date: Thu, 11 Jan 2001 13:35:18 +0800 (HKT)
>
>Hi,
> I have a problem with the servlet zone.
>I can run servlet /examples/servlet/ directory
>but
>cannot run servlet in /examples/servlet/xxx/
>where xxx is a sub-directory.
>
>I think it is a problem about servlet zone.
>Do anyone have an idea?
>
>Thank you very much.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]