S
Steve
I have a servlet that I'd like to access with a url that includes a
subdirectory; e.g., www.whatever.com/mysubdir/MyServlet (because that
subdirectory is a protected area with associated jsp's).
But, I can't seem to get a configuration that will map a request to the
servlet. I tried the following in web.xml to no avail:
<servlet>
<servlet-name>XServlet</servlet-name>
<servlet-class>XServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>XServlet</servlet-name>
<url-pattern>/mysubdir/com.whatever.XServlet</url-pattern>
</servlet-mapping>
How do I accomplish this?
subdirectory; e.g., www.whatever.com/mysubdir/MyServlet (because that
subdirectory is a protected area with associated jsp's).
But, I can't seem to get a configuration that will map a request to the
servlet. I tried the following in web.xml to no avail:
<servlet>
<servlet-name>XServlet</servlet-name>
<servlet-class>XServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>XServlet</servlet-name>
<url-pattern>/mysubdir/com.whatever.XServlet</url-pattern>
</servlet-mapping>
How do I accomplish this?