Forums Register Login

Mixing ASP and Servlets/JSP

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1265 times.
Similar Threads
problem in Servlets and JSP's
servlets&jsp
Comparison
asp
JSP vs ASP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:04:11.