File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Mixing ASP and Servlets/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Mixing ASP and Servlets/JSP" Watch "Mixing ASP and Servlets/JSP" New topic

Mixing ASP and Servlets/JSP

Sankar Subbiramaniam
Ranch Hand

Joined: Oct 03, 2000
Posts: 116
One of our company site is already developed running with ASP technologies. Now we want the new applications to be developed in JAVA technology.
Will this have any problems ? Will the session object created by ASP application accessible by JSP and java servlets ?
Please give your suggestions.
dave kees

Joined: Dec 28, 2001
Posts: 4
Regarding the mixing of JSP and ASP, did you ever get any
feedback? I am working with a test case written in ASP.
The session attributes set by the ASP are NOT being
recognized when a JSP tries to accesses them.
Seems like the app must be ine or the other and no
mixing of ASP and JSP, expecially if they need to pass
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

By itself, a web app doesn't require everything to be ASP, JSP, or even PHP. However each has its own idea of what a session object is.
If you want to migrate to JSP, the best thing to do is write/locate a JNI class that can access the IIS session info. This might be a little tricky, since the only way you might be able to get it is to do an internal HTTP request to IIS to an app that can get/set session variables.
At the next level out, you should consider storing session info in language-neutral objects on some sort of common storage medium such as a temp file. This will obviously require mods to the ASP code.
Finally, you could migrate session info to a Java environment and use a Java server app instead of a neutral object (tempfile). The ASPs could then store session info through that and the overhead for Java (and eventual conversion to Java sessions) would be reduced.

An IDE is no substitute for an Intelligent Developer.
dave kees

Joined: Dec 28, 2001
Posts: 4
So in other words, since the session object is different
between ASP and JSP, are you saying data CANNOT be passed
between ASP and JSP using the session object?
I have no idea how I would implement those other suggestions.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Yes, that's what he's saying.

Think about it this way: Would you be able to pass a Visual Basic variable of type Variant, to a Java program that expects an Object?

ASP and JSP are two different platforms that have (you can be fairly certain), radically different ideas about what makes an interface, and how objects should be constructed.

Just look at the differences between them:The corresponding JSP would be something like:They sound alike (they're both called session), but these are obviously different objects with different interfaces.
I agree. Here's the link:
subject: Mixing ASP and Servlets/JSP
It's not a secret anymore!