Click to See Complete Forum and Search --> : confusion between JSP & ASP


Ruturaj
02-13-2005, 04:11 AM
Hello all Techies myself Final Yr Graduate frm indiain the field of Information Technology , I required to use Scripting language for my final Yr prject called "Online Examination & account maintainence" with JAVA(servlets+JSP)as front end & Oracle as backend . i am working on This advance Java now i studied Core java but quite not familier with Advance java so any 1 can give me exact which major e books should i refer or any link to download .
I hav tried Google but i want specific to my application developement which i cant found there so if any 1 knows,also i got little confused between ASp& JSP ,also any suggestions about my project r most welcome i want to make my application as flexible as i can ..
In srch of proper assistance
Ruturaj

buntine
02-13-2005, 05:35 AM
Here are some articles on Java Database Connectivity (JDBC):

- http://www.javaworld.com/channel_content/jw-jdbc-index.shtml
- http://www.winntmag.com/Articles/Index.cfm?ArticleID=463

There are several good books available, also.

ASP is a server-side technology developed by Microsoft in the mid-90's. It is really just a set of objects that allow us to use a client-side scripting language to write scripts that are executed on the server.

JSP is similar. It is a technology that allows us to create dynamic web content. See here for more details: http://java.sun.com/products/jsp/

Regards.

ray326
02-13-2005, 01:23 PM
The primary difference between ASP and JSP is that ASP is server parsed every time it is loaded whereas JSP is a source language compiled into a servlet class only when the content of the source JSP changes.

BuezaWebDev
02-15-2005, 10:11 AM
Originally posted by ray326
The primary difference between ASP and JSP is that ASP is server parsed every time it is loaded whereas JSP is a source language compiled into a servlet class only when the content of the source JSP changes.

Is that why JSP is more "efficient" than ASP?

TheBearMay
02-15-2005, 11:45 AM
The first time a JSP page is run it creates a class file thus eliminating the need to psuedo-compile everytime thereafter like native ASP. ASP.Net however, performs an exercise similiar to JSP therefore...

ray326
02-15-2005, 05:50 PM
Originally posted by BuezaWebDev
Is that why JSP is more "efficient" than ASP? Depends on the definition of "efficient." :)

BuezaWebDev
02-16-2005, 02:51 AM
Performing various string manipulations with information retrieved from a database.

ray326
02-16-2005, 03:21 PM
After the initial compilation then a JSP would be faster at that if there was a LOT of it to do. As the Bear says, ASPX works about like JSP so I doubt you'd see a difference there.

BuezaWebDev
02-16-2005, 03:52 PM
So, compiling vs parsing--compiling is marginally faster in terms of performance?

ray326
02-17-2005, 10:28 AM
For certain cases. Compiling only happens once, parsing happens every time the page loads. That appears as a load-time difference. Running the parsed code, though might be pretty fast depending on the execution environment. I know Perl runs very efficiently once it's parsed and I suspect PHP is similar. With the JIT compiler invoked, though, the JSP/servlet class is running as machine code so it will still be much faster. Now modphp and modperl implementations and ASPX could be doing a very similar thing but I'm ignorant of those.