Meaningless Drivel is fun!*
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
Author

Mixing ASP and Servlets/JSP

Sankar Subbiramaniam
Ranch Hand

Joined: Oct 03, 2000
Posts: 116
Hi,
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.
regards
Sankar
dave kees
Greenhorn

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
data.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
dave kees
Greenhorn

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.
 
jQuery in Action, 2nd edition
 
subject: Mixing ASP and Servlets/JSP
 
Similar Threads
problem in Servlets and JSP's
Comparison
asp
JSP vs ASP
servlets&jsp