Bookmark Topic Watch Topic
  • New Topic

JSP and Java

 
Alka Kapoor
Greenhorn
Posts: 2
 
Karn Kumar
Ranch Hand
Posts: 153
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
There are certain differences , but finally JSP converted into the JAVA code (Servlet class) by the container.

Mostly JSP (Java Server pages) is used as the view part in web application where you can type the HTML code and also the java code with the help of the scriptlets.

Plain Java is used in variety of aspects like writing business logic .

 
Ifteqar Ahmed
Ranch Hand
Posts: 85
Java Linux MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
The major difference between JPS and Servlets is that JSP files are the Extended version on Servlets.

In JSP we can write HTML Code directly but in Servlets we have include HTML Tags inside the Functions .

When a JSP Executes it will be compiled as a servlet by Tomcat or Any other Application Server like Jboss, Weblogic etc...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Read about JavaServer Pages
 
    Bookmark Topic Watch Topic
  • New Topic