jsp serverlet difference

The concept of JSP and Servlet for JSP for beginners, it is rather unclear, the following summarizes some of my personal views:

(1). Simply for the Jsp is Java code that contains html, which contains the html of the servlet is a Java code;

(2). Jsp ultimately be interpreted as a servlet and compile the re-implementation, Jsp is just another servlet preparation methods;

(3). Jsp good at that, servlet good at data processing, in the MVC in three-tier structure, Jsp is responsible for V (view), servlet is responsible for C (control), each with advantages and carry out their duties;

Servlet in the functional realization of the fact is the same can be said to be able to use Jsp achieved, Servlet can be achieved, but from the application point of view, Jsp presentation layer is more suitable for things because he has tag support, while the Servlet suitable the data logic layer of the data processing.

Serverlet is a Java class, Web application should be the HttpServerlet, which extends from the GenericServerlet (This is a partial realization of Serverlet interface abstract class), Serverlet class biggest advantage is the ability to provide request / response server functionality, when the there is a request submitted to the Serverlet, he was the implementation of its own service (request, response) method.

Is to show no logic function can not process the data to determine how to do?

On the client, using Javascript to solve the

How to solve but the server can use Java code to do the control of the servlet is the client and server connection all the features of an interface
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of jsp serverlet difference

  • FLEX: integrating Spring + Hibernate

    Before a friend also wanted to study development of FLEX. Asked me to help him to be a small sample. Spent a weekend time, to integrate a sampleproject. Client: FLEX Server: Spring2.5 + Hibernate3.2 + Hibernate-annotations3.3.1 + MySQL5 FDS: BlazeDS3 IDE:

  • Java technology 25 study points

    1. You need to master the object-oriented analysis and design (OOA / OOD), involving patterns (GOF, J2EEDP) as well as the integrated model. You should understand the UML, especially class, object, interaction and statediagrams. 2. You need to learn basic

  • Some interview questions java

    The first is the company give you a chance to meet, it is necessary to know to meet from time to equal the interview, and have a lot of companies to see you at the first time will give you a ready point of doing something trivial, these questions, althoug

  • JAVA Class naming convention

    1. Entity Layer: Inheritance: All categories inherited from BasicEntity, one of BasicEntity implementation java.io.Serializable interface; Naming rules: Class Name = Object + type suffix, one of type suffix for Bean, such as: SalesOrderBean 2. Form l ...

  • WebQQ, ExtJs + Servlet + Hibernate + Spring implementation

    Code for the development of boredom when using ExtJs + Servlet + hibernate (Ant + xdoclet generate HBM files) + spring implementation, Pure whim, but implementation has been more than chat, group chat, what's not achieve, nor how to consider the perfo

  • spring + hibernate + oracle9i to read and write CLOB

    Database-driven update classes12-9i.jar Hibernate modify the configuration of the following code <bean/> <bean Lazy-init="true"> <property name="nativeJdbcExtractor"> <ref local="nativejdbcExtractor"/>

  • In the servlet use Bean

    According to Sun's definition, JavaBean is a reusable software components. In fact JavaBean is a Java class, through the package into a property and methods of treatment of a function or a business object, referred to as bean. Because JavaBean is ...

  • The level Hibernate cache

    Hibernate cache level: (1) a cache is very short and the session life cycle consistent, also known as session-level cache-level cache or transaction-level cache (2) Ways of Supporting level cache: get (); load (); iterator (); only entity object cach ...

  • Java Technology wishing cow needed 25 points of study

    1. You need to master the object-oriented analysis and design (OOA / OOD), involving patterns (GOF, J2EEDP) as well as the integrated model. You should understand the UML, especially class, object, interaction and statediagrams. 2. You need to learn basic

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries