The latest technology comparison between Java Web Application

zhaozj2021-02-08  424

The latest technology comparison between Java Web Application

Author: bwwlpnn on the latest technology is implemented in Java Web Application, I would like to wish to achieve from the Open Source Portal - Jetspeed (http://jakarta.apache.org/jetspeed/site/index.html) - as a starting point . * JetSpeed ​​technology is that Turbine and Velocity * JetSpeed ​​itself are not a web application server, can't run alone, but in the form of a .war file deploy to a Web Application Server can run. Tomcat is a development platform for JetSpeed, theory JetSpeed ​​can run on any Web Application Server that supports Servlet 2.2 / 2.3. I have been able to run JetSpeed ​​on WebLogic 6.1 SP2, of course, some necessary configurations. * JetSpeed ​​just develops a front end of the web application (Front end), which is based on the servlet. EJB is a Framework for the rear end of N-Tier Applications. Both can be used well together. * Turbine vs. Struts: Both realize the requirements of View and Controller in MVC. However, Turbine mainly uses Velocity, Turbine can support JSP, but it is not recommended to use JSP (see below); Struts is implemented only JSP in View. If you want to implement Controller, both cannot be used at the same time. That is, only one of Turbine or Struts can be implemented in one of the Turbine or Struts. Of course, for the implementation of the View, both should be used simultaneously. * Velocity vs. JSP: Both are the Template Languages ​​that implements the same function. JSP is the standard of Sun, and Velocity is the system developed by Open SOURCE. There are several detailed articles on the Internet (http://jakarta.apache.org/Velocity/ymtd/ymtd.html) compared to the difference, because it is written by Open Source, of course to Velocity 喽. However, I read it in detail, the article wrote that there is a reason, all the experience of developer, and did not sell Velocity. Every article has a sentence: You make the decision. In Open Source, JSP is a "not easy" product developed by Sun. "Not easy to use" is mainly reflected in: difficult to debug; there is no need to complicate simple problems, such as JSP's first compilation and running; can prevent users from embed Java Code into JSP, thus destroying the MVC design. And Sun will crown With "standard", there is a suspicion of "the heavens to make the princes". Of course, Struts and Tag LIB peeled Java Code from JSP to save JSP. In order to keep JSP "Sun Proprietary Product", I had to help Struts "life-saving". * If it is not used for the development of JetSpeed ​​portlets, Turbine is also a very good development of Web Application Framework. More than 30 developers of the world have passed Three years of development, put forward the issues of commonality in Web Application development and resolved.

转载请注明原文地址:https://www.9cbs.com/read-770.html

New Post(0)