美文网首页
JSP Servlet

JSP Servlet

作者: yeahuh | 来源:发表于2017-06-08 12:58 被阅读0次

jsp是后端技术,html5和js,css是前端技术,可比性不大,如果硬要对比的话,确实jsp在出现了诸多mvc框架后,jsp只作为v层的角色也逐渐被诸如freemarker,velocity等技术在运行效率,尤其和前端人员的可读性方面落入了下峰,jstl标签技术也只是弥补这方面的不足,但性能方面确实不敢恭维。

你要是选别的框架,可以不学JSP,至少要学Servlet,这是所有框架的基础。

JAVASCRIPT :

Javascript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.

Main features:

  • JavaScript is a lightweight, interpreted programming language.
  • Designed for creating network-centric applications.
  • Complementary to and integrated with Java.
  • Complementary to and integrated with HTML.
  • Open and cross-platform

SERVLETS :

Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server. Using Servlets, you can collect input from users through web page forms, present records from a database or another source, and create web pages dynamically.

Main features:

  • Servlets execute within the address space of a Web server. It is not necessary to create a separate process to handle each client request.
  • Servlets are platform-independent because they are written in Java.
  • Java security manager on the server enforces a set of restrictions to protect the resources on a server machine. So servlets are trusted.
  • The full functionality of the Java class libraries is available to a servlet. It can communicate with applets, databases, or other software via the sockets and RMI mechanisms that you have seen already.

JSP :

JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content which helps developers insert java code in HTML pages by making use of special JSP tags, most of which start with <% and end with %>. A JavaServer Pages component is a type of Java servlet that is designed to fulfill the role of a user interface for a Java web application. Web developers write JSPs as text files that combine HTML or XHTML code, XML elements, and embedded JSP actions and commands. Using JSP, you can collect input from users through web page forms, present records from a database or another source, and create web pages dynamically.

Main features:

  • Performance is significantly better because JSP allows embedding Dynamic Elements in HTML Pages itself instead of having a separate CGI files.
  • JSP are always compiled before it's processed by the server unlike CGI/Perl which requires the server to load an interpreter and the target script each time the page is requested.
  • JavaServer Pages are built on top of the Java Servlets API, so like Servlets, JSP also has access to all the powerful Enterprise Java APIs, including JDBC, JNDI, EJB, JAXP etc.
  • JSP pages can be used in combination with servlets that handle the business logic, the model supported by Java servlet template engines.

相关文章

  • java EE 相关概念的总结

    1.JSP和Servlet Servlet和JSP是统一的,广义上的Servlet包含JSP和Servlet,真正...

  • Head First Servlet & JSP读书笔记

    Head First Servlet & JSP读书笔记 本书内容:Servlet和JSP Servlet和JSP...

  • JSP基本语法

    JSP本质是Servlet,每个JSP页面就是一个Servlet实例。在Tomcat中,JSP生成的Servlet...

  • Java面试问题

    1、JSP: jsp和servlet的区别 jsp本质就是Servlet,jsp的工作原理是:JSP页面在执行的时...

  • 复习

    JSP: 1、jsp和servlet的区别 jsp本质就是Servlet,jsp的工作原理是:JSP页面在执行的时...

  • Servlet与JSP学习笔记(三)JSP

    概述: JSP并没有取代Servlet,是对Servlet的补充 JSP实质是Servlet JSP的页面不需要编...

  • jsp与servlet的区别与联系

    jsp和servlet的区别和联系: 1.jsp经编译后就变成了Servlet.(JSP的本质就是Servlet,...

  • java 面试

    一、javaWeb知识点: jsp和servlet的区别 jsp本质就是Servlet,jsp的工作原理是:JSP...

  • Servlet学习笔记

    Servlet概述 JSP的前身就是Servlet。因此我们乐意清楚的知道Servlet是JSP的基础。Servl...

  • 关于创建Maven项目时Jsp页面报错处理方法

    JSP是Servlet技术的扩展,本质上就是Servlet的简易方式。JSP编译后是“类servlet”。 ...

网友评论

      本文标题:JSP Servlet

      本文链接:https://www.haomeiwen.com/subject/qpozfxtx.html