This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP and Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

JSP and Java

Alka Kapoor

Joined: Dec 28, 2011
Posts: 2
What is the difference JSP and Java?

Seo Content Writer | Astrology in Delhi | Corporate Event Planners in Delhi
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 146

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

Joined: May 02, 2011
Posts: 85

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

Joined: Jan 10, 2002
Posts: 62139

Read about JavaServer Pages

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSP and Java