Hi all,

I implemented a filter for filtering urls. In the doFilter method i'm
using (like in org.mmbase.servlet.JumpersFilter):

forwardUrl = "http://localhost:8080/index.jsp?r=123&p=456&a=789";;
HttpServletResponse res = (HttpServletResponse) response;
res.sendRedirect(forwardUrl);

This works fine, but of course urls get rewritten in the address bar.

To leave the urls in the address bar in their original form, i replaced
the two lines above by (like it is done in
nl.leocms.servlets.UrlInterceptor):

RequestDispatcher requestDispatcher =
request.getRequestDispatcher(forwardUrl);
requestDispatcher.forward(request, response);

However this doesn't show the forwarded page, but the browser returns a
blank page.

Any idea why requestDispatcher.forward does not function? Do i have to set
some extra configuration, do i have to use a certain version of Tomcat, or
something like that?

Thanks for any suggestions.

Kind regards, Henk.

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to