hi,

Henk Hangyi wrote:

> forwardUrl = "http://localhost:8080/index.jsp?r=123&p=456&a=789";;

[snip]

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

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

Javadoc says:

The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a RequestDispatcher.

Do you perhaps see a NullPointerException in your logs?

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

Reply via email to