Operating Systems: i5/OS
Personalize the table of contents and search results
Configure 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.
Overview
For transitioning users: 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.trns
To instruct
the server not to use the Web server's document root and to use instead the
Web application's context root for sendRedirect() calls, configure the JVM
by setting the com.ibm.websphere.sendredirect.compatibility property to a true or
false value.
Procedure
- Access the settings
page for a property of the JVM.
- Click Servers > Application Servers in the console navigation
tree.
- On the Application
Server page, click on the name of the server whose JVM settings you
want to configure.
- On the settings
page for the selected application server, under Server Infrastructure,
click Java and Process Management > Process Definition.
- On the Process
Definition page, click Java Virtual Machine.
- On the Java
Virtual Machine page, click Custom Properties.
- On the Custom
Properties page, click New.
- On the settings
page for a property, specify a name of com.ibm.websphere.sendredirect.compatibility and
either true or false for the value, then click OK.
- Click Save on the console task bar.
- Stop the application
server and then restart
the application server.
}
Related tasks
Configuring the JVM
|