Configuring JVM sendRedirect calls to use context root
If the com.ibm.websphere.sendredirect.compatibility property is not set and your application servlet code has statements such as sendRedirect("/home.html"), your web browser might display messages such as Error 404: No target servlet configured for uri: /home.html.
About this task
Deprecated feature: The com.ibm.websphere.sendredirect.compatibility
property is deprecated. You should modify your applications to redirect
non-relative
URLs (those starting with a "/") relative to the servlet container
(web_server_root)
instead of relative to the web application context root.
To instruct the server to use the context root for that the application uses for sendRedirect() calls instead of using the document root for the web server, configure the Java™ Virtual Machine (JVM) by setting the com.ibm.websphere.sendredirect.compatibility property to a true or false value.