Java vs JSP

Discuss all aspects of programming here.

Moderator: The Mod Squad

Post Reply
jackyrice21
Pilgrim
Pilgrim
Posts: 2
Joined: Mon Nov 21, 2011 1:44 am

Java vs JSP

Post by jackyrice21 »

I just have a quick question for everyone? Is Java and JSP desame thing? The reason why I'm asking is because I'm searching for the term "Java Hosting" in google and it's returning me websites such us this http://www.webhostingsearch.com/jsp-web-hosting.php . Notice "jsp web hosting"in the url? Now, I just want to make sure I understand this thing correctly. Any help would be extremely appreciated.
User avatar
Karlsweldt
Mobo-fu Master
Mobo-fu Master
Posts: 20868
Joined: Wed Nov 12, 2003 11:57 am
Location: 07438

Post by Karlsweldt »

Welcome to Motherboards.org!
There is indeed a difference in Java and JSP! Java is a program from http://www.java.com/en/ that enables certain screen graphics and text to be viewed. Similar to Adobe Flash.. http://www.adobe.com/ Good to have both programs. The other entity, is of course, a hosting Web site.
[email protected] to solve mankind's maladies.. in our lifetimes!
jackyrice21
Pilgrim
Pilgrim
Posts: 2
Joined: Mon Nov 21, 2011 1:44 am

Thanks for the info

Post by jackyrice21 »

Thanks Karlsweldt. I'm now reading this long article in wikipedia about jsp. I'm still a bit confuse but is slowly grasping the idea. Its hard for me to absorb all these technical jargons because the course I took in college has almost nothing to do with computers. I took-up nursing =)
User avatar
Karlsweldt
Mobo-fu Master
Mobo-fu Master
Posts: 20868
Joined: Wed Nov 12, 2003 11:57 am
Location: 07438

Post by Karlsweldt »

The jargon associated with computers can be confusing! But here is a link to reference to, so you are "in the know" as to what those acronyms and terms represent.. http://www.jonstorm.com/glossary/
You can always search for those odd terms or entities with Google.
[email protected] to solve mankind's maladies.. in our lifetimes!
olly
Green Belt
Green Belt
Posts: 227
Joined: Thu Jun 27, 2002 8:11 pm

Re: Java vs JSP

Post by olly »

Java is a programming language. Java Server Pages is just a way of using Java to display dynamic web pages e.g. in conjunction with HTML. Java Server Pages uses Java code but needs a web server that supports JSP.

Typically you would have a JSP and HTML user interface level and some normal Java underneath that doing some business logic and database queries.
supriyala
Pilgrim
Pilgrim
Posts: 1
Joined: Tue Mar 05, 2019 3:39 am
Contact:

Re: Java vs JSP

Post by supriyala »

Key Differences :
Servlet is html in java whereas JSP is java in html.
Servlets run faster compared to JSP
JSP can be compiled into Java Servlets
It’s easier to code in JSP than in Java Servlets
JSP is a webpage scripting language that can generate dynamic content while Servlets are Java programs that are already compiled which also creates dynamic web content
In MVC, jsp acts as a view and servlet acts as a controller.
JSP are generally preferred when there is not much processing of data required. But servlets are best for use when there is more processing and manipulation involved.
The advantage of JSP programming over servlets is that we can build custom tags which can directly call Java beans. There is no such facility in servlets.
We can achieve functionality of JSP at client side by running JavaScript at client side. There are no such methods for servlets.
A servlet is like any other Java class. You put HTML into print statements like you use System.out or how JavaScript uses document.write. A JSP technically gets converted to a servlet but it looks more like PHP files where you embed the Java into HTML.
nirmal
Pilgrim
Pilgrim
Posts: 1
Joined: Wed May 22, 2019 1:10 am

Re: Java vs JSP

Post by nirmal »

java - Java is a programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code (known as bytecode) runs on most operating systems (OS), including Windows, Linux and Mac OS.

JSP - Java Server Page (JSP) is a technology for controlling the content or appearance of Web pages through the use of servlets, small programs that are specified in the Web page and run on the Web server to modify the Web page before it is sent to the user who requested it.
Post Reply