WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

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

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

  1. Access the settings page for a property of the JVM.
    1. Click Servers > Application Servers in the console navigation tree.
    2. On the Application Server page, click on the name of the server whose JVM settings you want to configure.
    3. On the settings page for the selected application server, under Server Infrastructure, click Java and Process Management > Process Definition.
    4. [z/OS] Select Control.
    5. On the Process Definition page, click Java Virtual Machine.
    6. On the Java Virtual Machine page, click Custom Properties.
    7. On the Custom Properties page, click New.
  2. 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.
  3. Click Save on the console task bar.
  4. Stop the application server and then restart the application server.



In this information ...


Related tasks
Configuring the JVM

IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/xrun_jvm_sendredirect.html