You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luiz Fernando Bettella <be...@pro.via-rs.com.br> on 2001/05/14 15:26:56 UTC

JSP from Servlets

 Hi!
We run jspServlet defined at web.xml in the conf directory from a
servlet defined in an independent context under webapps. We use
RequestDispatcher.forward(req,res), where the target is a .jsp type.
Tomcat 3.2 is diferent from 3.1.1 on url-pattern.
V 3.1.1
<servlet-mapping>
        <servlet-name>
            Servlet
        </servlet-name>
        <url-pattern>
            /
        </url-pattern>
</servlet-mapping>
V 3.2
<servlet-mapping>
        <servlet-name>
            Servlet
        </servlet-name>
        <url-pattern>
            /*
        </url-pattern>
</servlet-mapping>
To run our servlet, we had to put /* on url-pattern, but now, our
jspServlet doesn't run because all requests goes to servlet.
How can i configure it to run our jsp from servlet with
RequestDispatcher ?

Luiz Fernando Bettella,
PROCERGS, Porto Alegre  RS
Brasil.