General JSP vs ASPX question

J

Jim Stools

Very new to Java (debating on whether to use java instead of MS products) -
so here's my general question.

In asp.net you have apsx (with code behind) pages and can call classes (if
you want) to perform business logic, etc. Only classes and the code behind
are compile. With JSP, I think, you can have classes within the page and
also uses inbedded code with html and it is completely complied. Using the
term "compiled" as it is meant in both java and .net) Am I wrong on any of
this?

Thanks
 
L

Larry

The JSP code is generated to a servlet (a type of Java class), and then
compiled. The compiled Servlet file is what runs when the the JSP page
is requested, and it in turn can call other compiled classes on the
applicaiton server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top