You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Valery Brasseur <vb...@laposte.net> on 2000/07/24 11:56:43 UTC

mapping html file to a servlet

I have some difficulties in mapping html files to servlet...

If I invoke my servlet directly by : /myapps/servlet/myservlet 
the servlet is executed but if I try to run it through an HMTL page 
it doesn't work, it only gives me the HTML part !!!

here is an extract from my web.xml file :

 <servlet-name> myservlet </servlet-name>
        <servlet-class> MyServlet </servlet-class>

  <servlet-mapping>
        <url-pattern>
          /mytest/*
        </url-pattern>
        <servlet-name>
           myservlet
        </servlet-name>
      </servlet-mapping>

did someone have an idea ?

thanks
valery