File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 153

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: 63839

Read about JavaServer Pages

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSP and Java
It's not a secret anymore!