Comparison of advantages and disadvantages of JSP architecture and JSP development tools

Source: Internet
Author: User
Tags jboss server microsoft iis

With the rapid development of technology, new JSP technologies are also emerging. In order to learn and work, we will briefly introduce the JSP architecture, JSP development tools, Web servers, and their disadvantages.

JSP architecture:

Struts: Like many Apache projects such as Tomcat and Turbine, Struts is an open-source software. This is a major advantage of struts, allowing developers to gain a deeper understanding of its internal implementation mechanism.

In addition, the advantages of Struts are mainly embodied in two aspects: Taglib and page navigation. Taglib is a Struts tag library, which is flexible and can greatly improve development efficiency. In addition to common JSP tags, JSP developers in China rarely develop their own tags. Struts may be a good starting point. After more than six years of development, struts is currently the most popular framework among users, development teams, and communities. It is suitable for the rapid development of small and medium-sized projects.

Tapestry: Tapestry is an open source servlet-based application framework that uses component object models to create dynamic and interactive web applications. A component is any html tag with the CID attribute. Jwc means that Java Web Component. Tapestry completely isolates java code from html, making it easy to use this framework to develop large-scale applications. In addition, the developed applications are easy to maintain and upgrade. Tapestry supports localization and detailed error reports. Tapestry is mainly developed using javabean and xml technologies. It is a component-based, event-driven framework with advanced concepts. It wants to implement a convenient mode similar to desktop program development. However, its learning curve is steep, and it takes a lot of time to grasp it. It is suitable for large-scale project development. With the accumulation of components, the more components that can be reused in the future, the faster the development speed.

Spring mvc: Spring's Web MVC framework is designed around DispatcherServlet, which distributes requests to the processing program, it also supports configurable handler ing, view parsing, local language, topic parsing, and file uploading. The default handler is a very simple Controller Interface, with only one method ModelAndView handleRequestrequest, response ). Spring provides a controller hierarchy that can be derived from child classes. If the application needs to process the user input form, it can inherit AbstractFormController. if you need to process multi-page input to a form, you can inherit AbstractWizardFormController. spring provides Dongdong, which uses spring's IoC and is also very powerful. However, it feels like it is close to the lower layer, and there are many things to be concerned about.

JSF: JSF is responsible for influencing client devices. It provides tools to integrate the presentation layer, application layer, and business logic layer. However, the scope of JSF is limited to the presentation layer.

The following are the most important services provided by JSF Framwork.

◆ MVC Architecture

Software Users always need to operate on various types of data, such as registration information submitted by a potential user, which is called model. software developers must present the data to users, which is the view views. in Web applications, HTML files are used to depict the data.

JSF combines model and view. You can bind the model property to the view component in the following way:

 
 
  1. "#user.username) "/> 

In addition, JSF also acts as the Controller. It can respond to user events, such as submitting data or modifying a value ), submit the data of these events to the class that processes the model to update the model. for example, you can call a method to determine whether a user is allowed to log on:

◆ Data type conversion

Users input text in HTML forms, and we need numbers, dates, and Other types. JSF provides a very simple method to specify or customize data conversion rules.

◆ Verification and error handling

In JSF, you can easily implement rules such as "a field cannot be blank" or "a field must be a number automatically. The customer also hopes to get a proper prompt after entering the error data. JSF provides a method to complete most similar tasks.

◆ Internationalization

JSF provides international publishing management to address topics such as character encoding and resource file selection.

◆ Custom components

◆ Selectable Renderer

By default, JSF renders tags in HTML format. However, it can also be easily extended to meet other rendering requirements, such as WML.

◆ Tool support

And so on.

Webwork: Webwork is an open-source Web application framework used to simplify Web-based application development.

The biggest advantage of Webwork is its simplicity and flexibility. Webwork has a very small API that allows developers to quickly develop jobs.

Webwork is a combination of many features and applicability, including the use of variour view technology, such as JavaServer PagesJSP), Velocity, Extensible Stylesheet Language Transformations SpecificationXSLT) and JasperReporters. also, Webwork has excellent support for JFreechart. A classic framework like struts is easier to use than struts, but the community is not as powerful as struts.

Struts2: the combination of struts and webwork has not yet been officially released. I wonder if it will be a freak.

Server:

These frameworks basically do not rely on specific servers, and tomcat, jboss, and weblogic are all correct.

Tomcat: Tomcat is a Java-based Web Application Software container that runs open source code, servlet, and JSP Web application software. Tomcat is supported by Apache-Jakarta sub-projects and maintained by volunteers from the open source code Java Community. Tomcat Server is executed according to servlet and JSP specifications. Therefore, we can say that Tomcat Server implements Apache-Jakarta specifications and is better than most commercial application software servers. Web containers are lightweight and small. If you are not using ejb for development, you can use them for fast and convenient use.

Jboss: JBoss Server is an excellent J2EE server. It is similar to BEA's Weblogic and IBM Websphere. The advantage of JBoss is that it has good cost effectiveness, it implements all j2ee specifications and APIs, supports new standards, fast versions, and all the advantages of open source code. It supports hot deploy and is suitable for development environments, especially big team development, deploy will drag down the efficiency of the entire team. There are too few documents. Fast startup.

JBoss is a free software with fully open source code and has good running efficiency and reliability. Therefore, JBoss has been favored by more and more J2EE application developers.

Among them, the web Container uses tomcat, But it supports ejb, Which is slower and not suitable for the development stage. It can be used in real Running Environments for free ).

Weblogic: WebLogic is a powerful JAVA-based e-commerce kit. It provides many powerful middleware to facilitate coding of JSP, SERVLET, and other e-commerce applications by programmers, it can provide enterprises with a complete business application solution. It is not suitable for the development stage, it is too slow, and it is suitable for the running environment to charge ).

JSP development tools:

IBM VisualAge for Java: IBM's Web development product can be described as a giant in the Same Kind: it is large in size and has many functions. It is used by the entire development team; the design goal is to get everything you can see in the field of view!

VisualAge for Java is the first Java IDE that provides the wizard function. It can generate a large number of EJB infrastructure code, thus simplifying the EJB development process. In addition, the creation wizard of the dialog and object beans, the beans ing of beans to existing relational data storage, and the advanced test environment greatly reduce the time required to create, test, and deploy ejbs.

Jbuiler: JBuilder targets code developers rather than senior designers. Therefore, JBuilder contains a large number of wizard programs and other quick development tools for the middle layer. JBuilder features stable performance and ease of use, and is especially suitable for creating Java components. The software also provides many JSP functions.

Jrun: Allaire's JRun is a Java engine with the widest applicability. It is used to develop and implement server-side Java applications written by Java ServletsJSP and JavaServer Pages. The Web Server includes Microsoft IIS, Netscape Enterprise Server, and Apache.

JRun is an advanced engine for developing and implementing server-side Java. If you want to add the server-side Java function to your Web application, JRun will be your correct choice.

Eclipse + myeclipse: almost all of the above development needs can be met. You can also find the specific plug-ins of a framework as needed, but myeclipse itself integrates various plug-ins for ease of use.

Other related technologies: urlrewrite: URL rewriting and conversion, allowing front-end users to access the service through static paths, and the backend is automatically converted to dynamic paths.

Sitemesh: simplifies page development, templates page development, and shares the same area.

Acegi Security Framework: intercept and verify the url accessed by the user to determine whether the user has the right to access it. Not only that, but also very powerful.

Displaytag: The list is displayed, which automatically enables paging and data export.

Dtree: Tree display, easy to use.

Jfreechat: Statistical Chart generation.

Dwr: Suitable for java ajax development framework. The new version implements the server push mode, subverting the traditional Client PULL mode.

FCKeditor: the WYSIWYG editor of a webpage, which features a beautiful appearance and multi-language support. It is very powerful.

The above describes the advantages and disadvantages of JSP architecture and JSP development tools.

Obtained on the network, I think it is very comprehensive.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.