tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lindomar" <lindomar.si...@bol.com.br>
Subject web.xml
Date Thu, 19 Sep 2002 13:13:56 GMT
Hi everyone!
I have a problem with mapping to my servlets.
I have this structure in tomcat 4.1
myapp
    |_WEB-INF
            |_classes
                    |_subdir1
                            |_subdir2
                                    |_ myServlet.class

I want to mapping this servlet this way: http://localhost:8080/myapp/oneid

I placed this code in web.xml on my app.
***
...
 <servlet>
  <servlet-name>myservlet</servlet-name> 
  <servlet-class>subdir1.subdir2.myServlet</servlet-class> 
  </servlet>
 <servlet-mapping>
  <servlet-name>myservlet</servlet-name> 
  <url-pattern>/oneid</url-pattern> 
  </servlet-mapping>
  </web-app>
..
***

What's wrong or missing?

Thanks in advanced.




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message