aspose file tools*
The moose likes JSP and the fly likes Pass HTTPSession to ASP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Pass HTTPSession to ASP" Watch "Pass HTTPSession to ASP" New topic
Author

Pass HTTPSession to ASP

Joly Mathew
Greenhorn

Joined: Jul 03, 2002
Posts: 13
Hi all,
Any one can suggest ,how can I pass the HTTPSession object from a JSP/Servlet to a ASP page.
I need to pass the User Credentials stored in HTTPSession object to a ASP Application so that ,It can behave like part of the Java Application.

Thanks in Advance,
Joly Mathew
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I will admit that it's possible I'm wrong, but I doubt you can pass that object from Java to ASP. Why don't you store the info represented by those credentials in strings or XML or something and collect them all in one big String (like a file), and then post those bytes across as text.
Essentially, you'll have an ASP "listening" or "landing" page, and if anything ever posts to it, you can simply get the Request.InputStream and you'll know that the bytes in that stream are just text that you can parse.
(You can post from your Java side by writing to an OutputStream, and instead of writing out to a file, you write out to a URL).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass HTTPSession to ASP