Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

JSP and Java

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
What is the difference JSP and Java?
 
Ranch Hand
Posts: 153
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .

 
Ranch Hand
Posts: 85
MySQL Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 67762
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Read about JavaServer Pages
 
    Bookmark Topic Watch Topic
  • New Topic