I think you could serialize your session from the ASPs into a file named
after the session id, and then pass the session id to the jsp's through a
form tag.. then the jsp could read that file and set up the session variables.

If the jsp/asp sites were on separate machines, you would need to have a
jsp/servlet running that could receive the information from the ASP and
make it available to the other jsp's (either write to a file, or use the
servlet context, etc.).  (i.e. you would have to make a call to this
servlet when the user left the ASP arena, passing all the session data so
that when he/she went to the first jsp page, that page would be able to
look up their session information somehow).

Of course, if it wasn't "important" data (i.e. verified a user was logged
in), you could just pass all the information in form tags from the asp to
the jsp.

-Erik



>-----Original Message-----
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of Daryani Santosh
>Sent: Friday, June 30, 2000 12:16 PM
>To: [EMAIL PROTECTED]
>Subject: Passing Session values between ASP and JSP
>
>
>Hi All,
>          I am working on JSPs that interact with another website , where
>the
>pages are ASPs , I need to get the session values set in a ASP into a JSP.
>Session variables work fine between ASP-ASP and JSP-JSP but inter ASP-JSP
>communication results in null session variables. I am not sure though , but
>I
>believe that there should'nt be any problem in doing so.
>     Can anyone throw some light on this. Your response is appreciated
>
>ASP code
><%
>Session("cono")="7719"
>%>
>
>JSP code
><%
> String cono= (String)session.getValue("cono")
>out.println("Value returned from session ="+cono);//results in a null
>%>
>
>Thanks in advance
>Santosh
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to