tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Görling <stefan.gorl...@pricerunner.com>
Subject Configuring a Default Servlet
Date Mon, 09 Feb 2004 07:17:18 GMT
Hi,

I want to have all incomming request forwarded to a default servlet. 
Depending on the URL the request is forwarded to a JSP-page (too dynamic 
to use apache mod_rewrite).

The problem is that if I define the servlet as:
    <servlet-mapping>
        <servlet-name>custom</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

It will work, but when I do 
getDispatcher("MyPage.jsp").forward(request,response), it will forward 
to the servlet in a recursive way.

Is there any way to get a hold of a JSP-dispatcher when forwarding a 
request in order to do this?

Best Regards,

Stefan Görling



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


Mime
View raw message