[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Servlet mapping



Can you point me in the right place to solve a
problem, I've spent quite a while looking and feel I
found the solution but it doesnt seem to work.

I have a default installation of apache/tomcat on a
RaQ4. What I need is to invoke my custom servlet
without the tomcat /servlet/ context mapping. Override
in web.xml I hear you say!

My conf is at the bottom of this mail. All works fine
but only with this /servlet/ mapping.

It just wont accept it from the document root. Anyone
please??? :)

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

<web-app>
    <servlet>
        <servlet-name>myservlet</servlet-name>
        
<servlet-class>mypackage.myServlet</servlet-class>
        <init-param>
	    <param-name>MY_XML</param-name>
           
<param-value>/usr/java/myServlet.xml</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>myservlet</servlet-name>
        <url-pattern>/*.tom</url-pattern>
    </servlet-mapping>
</web-app>


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/