In another in the series of travails in converting an app from
Tomcat to JRun, I've run into what seems to be a bug in JRun's
implementation of sendRedirect.
For example, the following statement:
response.sendRedirect("../web/" + nextPage);
throws the error:
404 Not found
http://hostname/servlet/../web/Dispatch.jsp?page=ProspectMaint.jsp&reset=true
This works fine in Tomcat, but it seems pretty clear JRun is not
resolving the relative path.
Changing the statement to use an absolute path (e.g. "/web/")
works, but since the absolute path resolves to the server root
rather than context root, I prefer to use relative addressing so
that I can easily move the app between development, staging and
production environments.
Is this a bug or are things done differently in the JRun world?
TIA,
Dave Jones
NetEffect
______________________________________________________________________
Get the JRun Web Application Construction Kit - the only book written specifically for
JRun developers.
http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists