tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Loïc Lefèvre <llefe...@fivia.com>
Subject Direct servlet Access ?
Date Fri, 27 Jul 2001 14:20:01 GMT
The story continue...

I've reinstalled Tomcat 3.2.3 on my server and
http://lol.fivia.com:8080/examples/servlet/HelloWorldExample works well.
I have installed a war file that work well on NT in [linux]
%TOMCAT_HOME%/webapps
What is the url to access the class Test (com.fivia.adfront.sales.Test) ?

server.xml:
...
<Context path=""
         docBase="webapps/adfront"
         crossContext="false"
         debug="0"
         reloadable="true" >
</Context>
...

[adfront.war].web.xml:
...
<web-app>

    <servlet>
        <servlet-name>AdFront</servlet-name>
        <servlet-class>com.fivia.adfront.sales.Test</servlet-class>
    </servlet>

    <servlet-mapping>
    	<servlet-name>AdFront</servlet-name>
        <url-pattern>/adfront</url-pattern>
    </servlet-mapping>

    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

</web-app>



Mime
View raw message