Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Bug with absolute Paths? errorPage="/error.jsp"

Reinhard Moosauer

2003-06-04

Replies:

Hello List,

when using absolute Paths in JSPs errorPage-Directive, I get
unexpected behavior:

A path "/error.jsp" should go to this page:
http://myserver.com/error.jsp
At least I did expect this.

Instead, it forwards all errors to:
http://myserver.com/context/error.jsp

This means:
An absolute Path in errorPage is
context-relative!
Is this correct?
The behavior seems consistent with
context.getDispatcher("/error.jsp").forward(req, resp);


I would be very grateful for clarifications.

regards,

Reinhard

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.