Results 1 to 2 of 2

Thread: forwarding to a servlet in another context

  1. #1
    Join Date
    Nov 2004
    Posts
    1

    Default forwarding to a servlet in another context

    i have a MA controller. It has to forward the req to a servlet in another webapp (inside another ear) on same server (weblogic 8.1). Since I think forwarding with jstl view will not work since jstl view wont understand another web context, i get the servlet context of the other web app explicitly in code, get a req dispatcher from that context, and forward to that servlet. All fine. After that serlvet finishes its work, the control comes back to my controller. Now i want to update a custom header('filename') in the response set by the other servlet. The idea is that the other servlet streams out a file and sets the file name in this custom header. My controler will override this filename header with a diff file name. is this workable? i face some unusual & unclear problems.

  2. #2

    Default Forwarding to different controller in another web context

    Hi,

    I'm facing a similar problem and don't know how to solve it.

    I have two different web contexts in my app. A login web context A and an application web context B. When user logs in successfully in LoginController in context A, I want to be able to forward to ApplicationController in context B and still have access to the session beans from context A. Using respose.sendRedirect(), all session beans are lost. Can someone help me solve this problem?

    Thank you

Similar Threads

  1. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Replies: 3
    Last Post: Jun 22nd, 2005, 07:52 AM
  4. Servlet Context Parameter
    By fhk1999 in forum Web
    Replies: 1
    Last Post: Mar 18th, 2005, 05:38 PM
  5. Servlet Context Path
    By wmopnc in forum Web
    Replies: 1
    Last Post: Feb 5th, 2005, 10:33 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
  •