File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Java and ASP/JSP interaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java and ASP/JSP interaction" Watch "Java and ASP/JSP interaction" New topic
Author

Java and ASP/JSP interaction

Richard Robbins
Ranch Hand

Joined: Mar 07, 2001
Posts: 66
I am developing an application with which I need to manipulate ASP and JSP pages. This is a new field for me, and I would like some direction on where to look to get started (e.g. books, online tutorials, etc.) Also, what are the fundamental differences between ASP and JSP? Thanks, Richard


Richard Robbins is one of the founders of WebsiteTemplateDatabase.com, a resource for free website templates and Photoshop tutorials. He also consults for an online boutique selling baptism dresses and christening gowns.
David Freels
Ranch Hand

Joined: Feb 01, 2001
Posts: 102
Go to http://www.javasoft.com/products/jsp/index.html for information regarding JSP. ASP is a M$ product so look at the MSDN site. Basically ASP and JSP are the same except JSP use HTML/Java/Javascript and ASP uses HTML/VBScript/JavaScript. ASP can only be run with IIS. JSP can run with multiple web servers across multiple platforms. You will need a JSP engine to execute your JSP code though.
David
Sun Certified Programmer for the Java2 Platform
Phil Hanna
Ranch Hand

Joined: Apr 05, 2001
Posts: 118
You don't mention whether the ASP and JSP components are on the same server. If you are talking about accessing an ASP already set up elsewhere, a JSP page or servlet can easily send requests to it and interpret the response, the same as a web browser can. Just build a URL to access the ASP:

and then read the response it sends back (which will be HTML, of course):

------------------
Phil Hanna
Author of :
JSP: The Complete Reference
Instant Java Servlets


Phil Hanna<BR>Sun Certified Programmer for the Java 2 Platform<BR>Author of :<BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072127686/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">JSP: The Complete Reference</A><BR><A HREF="http://www.amazon.com/exec/obidos/ASIN/0072124253/electricporkchop/107-3548162-1137317" TARGET=_blank rel="nofollow">Instant Java Servlets</A>
Dustin Marx
Ranch Hand

Joined: Mar 06, 2001
Posts: 40
http://java.sun.com/products/jsp/jsp-asp.html is a Sun-provided page that specifically compares ASP and JSP. Keep in mind that is *may* be biased.
Other such comparison sites include:
http://www.indiawebdevelopers.com/technology/Java/jsp.asp
http://www.devx.com/upload/free/features/javapro/2000/04apr00/jt0004/jt0004.asp
http://objectpro.surfnetusa.com/jsp-heaven/tut/intro.htm
 
Consider Paul's rocket mass heater.
 
subject: Java and ASP/JSP interaction