At 04:21 PM 01/11/2002 -0600, you wrote:

If you have your context's set to crossContext="true", you can receive the 
request in one context, set a request attribute with the value 
(setAttribute("otherContextPath", getServletContext().getRealPath("")), and 
then forward the request to the other context.

In the other context, you just pull the data out of the request attribute 
with that key.

I don't know if you were looking for something simpler than that, but if 
you are just trying to pass data around, that should work.

M-



>I want to pass servletContext.getRealPath("") over to another context.  I
>don't want to have to do this with http parameters because of security
>reasons.  Am I out of luck, or is there a way?
>
>Thanks in advance for any help!
>
>-----Original Message-----
>From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 11, 2002 3:45 PM
>To: Tomcat Users List; Jonathan Eric Miller
>Subject: Sessions across contexts, is it possible?
>
>
>Is it possible to use session attributes across contexts in tomcat 3.2.4?
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to