no, I'm not returning anything from the servlet.
I am now telling the servlet to forward to a JSP then use a javascript
window.location.replace(page). SAME!
Tell me, is a fully formed URL necessary here? e.g:
window.location.replace(http://lalala:8080/app2/index.jsp);
or
response.sendRedirect("http://lalala:8080/app2/index.jsp");
to switch between contexts? No that I can sucessfully forward to the destination app
with ANY URL format!
thanks for your efforts
G.
Jerry Ford <[EMAIL PROTECTED]> wrote:
Okay, from this detailed description---which sounds to me like it should
work---here's my SWAG (silly wild-ass guess): After your
response.sendRedirect() in the servlett, do you, um, well, include an
explicit return statement?
Jerry
Jerald Powel wrote:
>OK, what I am trying to do is simple in theory. I have loaded in the browser an app -
>app1/. From a servlet in app1 I want to simply redirect to another app (app2 -
>different context) - to be loaded in the same browser window. By which means I
>forward I'm not fussed. Currently I am using RequestDispatcher or
>response.sendRedirect from a servlet in app1. But in the window, app2 appeqars to be
>loading in the address bar, but app1 is in fact loaded but with broken image
>links/error messages etc. So it appears to looking in the right place...just for the
>wrong things!
>
>I have checked docBase for each context in server.xml - they are fine. Each app runs
>fine if loaded from new windows, but when I try to link the two together....trouble.
>
>Any thoughts please? I am ready to throw in the towel!
>
>G.
>
>Justin Ruthenbeck wrote:
>
>It'd difficult from your poast to figure out what you're trying to
>accomplish. The phrase "forward control from one context to another" is
>quite ambiguous:
>
>* Are you trying to create a response that includes output from resources
>from multiple contexts?
>
>* While using one app, do you want to direct the user to pages in a
>different app?
>
>* Are you talking client side or server side?
>
>* Can you give us the scenario you're addressing? Often people ask
>questions that aren't phrased properly, so it's important to understand
>exactly what you're trying to do before going off and suggesting one of a
>hundred different possible answers.
>
>justin
>
>BTW: I would suggest trying not to be "guilty" of stiring interest any
>more. It's not looked fondly upon by those who can most help you. Your
>previous post was not answered because it was ambiguous, so it'd be best
>to include copious information from the beginning (so you don't have to
>wait so long for a reply or cause subject pollution).
>
>
>At 04:45 PM 1/14/2004, you wrote:
>
>
>
>>Both! The answer to my query may well lie in my ignorance and I was
>>willing ot accept this, hence the subject title. But I am guilty of
>>hoping it stired more of an interest than a previous post onthe same
>>topic, with different subject (no replies)...and I still dont have the
>>answer!
>>
>>I guess it just shows how much perceptions can vary with Email.
>>
>>I read your first paragraph and formed the impression that the subject
>>was designed to generate additional interest and to work to prioritize
>>your request for help.
>>
>>
>>
>>-----Original Message-----
>>From: Jerald Powel [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, January 14, 2004 5:33 PM
>>To: Tomcat Users List
>>Subject: RE: RTFM
>>
>>
>>in traditional fashion, the subject was related to the contents of body
>>of the email.
>>
>>George Sexton wrote:I generally don't think it
>>is required to resort to things like this to
>>"get our attention".
>>
>>-----Original Message-----
>>From: Jerald Powel [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, January 14, 2004 3:11 PM
>>To: Tomcat Users List
>>Subject: RTFM
>>
>>
>>
>>Hi,
>>
>>Now I have your attention, will someone tell me if it is
>>possible to forward control (either by JSP or Servlet) from one context
>>to another, in the same browser window? i.e:
>>
>>
>
>
>---------------------------------
> Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download
> Messenger Now
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download
Messenger Now