Username:

Password:

Author Topic: JSP and Java Servlets?  (Read 510 times)

Santosbulus

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 38
JSP and Java Servlets?
« on: March 18, 2011, 01:38:13 AM »
What is the difference between JSP and Java Servlets.Is there anything common in between them?

trisswines

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: JSP and Java Servlets?
« Reply #1 on: June 09, 2011, 02:06:58 AM »
JSP stands for Java Server Pages. JSP is a server-side technology Java Server Pages are an extension to the Java Servlet technology that was developed by Sun. It technically gets converted to a servlet but it looks more like PHP files where you embed the java into HTML.

trisswines

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: JSP and Java Servlets?
« Reply #2 on: June 09, 2011, 02:21:35 AM »
JSP and Java Servlets are used to handle HTTP requests and generate responses. The best way to explain the difference between a private JVM and a shared JVM is to look at the differences of living in an apartment complex versus owning your own home.


jameshack

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: JSP and Java Servlets?
« Reply #3 on: June 10, 2011, 04:00:55 AM »
JavaServer Pages and server-side programming expertise, but it is what you can create dynamic Web pages and applications. Because they are basically on the run, from a technical standpoint, JSP is, Java can be considered a high-level abstraction of servlets. JavaServer Pages are usually, Java is compiled by the compiler.

devidmater

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: JSP and Java Servlets?
« Reply #4 on: July 06, 2011, 11:58:03 PM »
A JSP technically gets converted to a servlet but it looks more like PHP files where you embed the java into HTML. When the Servlet container instantiates a JSP it is compiled to a Servlet. Servlets involve embedding HTML into the java code which is deemed to be poor design.
Logged

lilly1236

  • Full Member
  • ***
  • Karma: +0/-0
  • Posts: 163
    • WWW
Re: JSP and Java Servlets?
« Reply #5 on: July 27, 2011, 08:41:06 AM »
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers.

aquanetta

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: JSP and Java Servlets?
« Reply #6 on: September 18, 2011, 10:46:39 PM »
The difference between them is that the

                     - Both JSP and Java Servlets are the server-side Java to dynamically generate web pages.

                     - The source code of the JSP is like of the HTML, with Java embedded tags

                     - The source code to a servlet looks like Java, with HTML embedded in out.print(...) statements.

                       - For the communication purpose both of them use the Servlet API with the web server and the client.

                        - JSP gets compiled into a servlet, so they're almost identical in terms of expressive power.

Cegonsoft
« Last Edit: September 19, 2011, 08:25:44 PM by aquanetta »
Logged

kadentrom

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 17
Re: JSP and Java Servlets?
« Reply #7 on: January 30, 2012, 08:53:38 PM »
It is complete considering the development life cycle, so you can model, code, debug, test and deploy. If you are launching a website that needs to utilize Tomcat hosting, there are options available.



Logged