Results 1 to 1 of 1
  1. #1
    karthikus is offline Member
    Join Date
    Jun 2010
    Rep Power

    Default Request dispatch from one web app to another

    Hi all,

    Here s my constraint. I have to use request dispatch from one web app to another. I cant use sendRedirect because i do not want to lose the request header. i am using Tomcat 6 as my server.

    I used crossContext attribute of tomcat. Here is the content of server.xml

    <Context path="/Orbeon-Test" docBase="Orbeon-Test" debug="0" crossContext="true"

    <Context path="/Orbeon" docBase="Orbeon" debug="0" crossContext="true"

    My goal is to send request from app Orbeon-Test to app named orbeon. Orbeon and Orbeon-Test are two sample projects in eclipse which uses the same server.
    In a JSP File of Orbeon-Test i used

    ServletContext ctx = application.getContext("/Orbeon");
    RequestDispatcher rd = ctx.getRequestDispatcher("/one.jsp");
    rd.forward(request, response);

    But i am getting 404 resource not found exception.

    Please help !!!!
    Last edited by karthikus; 06-15-2010 at 07:55 PM.

Similar Threads

  1. Replies: 5
    Last Post: 04-14-2010, 05:26 AM
  2. Dispatch simulated events
    By kusanagi97 in forum AWT / Swing
    Replies: 1
    Last Post: 10-12-2009, 02:20 PM
  3. Dynamic Method Dispatch
    By sandeshforu in forum New To Java
    Replies: 0
    Last Post: 09-15-2009, 05:18 PM
  4. incompatible types...What is "Dispatch" ?
    By ollyworks in forum Java Applets
    Replies: 1
    Last Post: 09-10-2009, 03:03 AM
  5. Error: Exception during event dispatch!
    By Javid in forum AWT / Swing
    Replies: 1
    Last Post: 08-02-2008, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts