Java platform script language can be used 2

Source: Internet
Author: User

How is efficiency? Let's take a look at the use cases from struts1 to struts2. Struts1 belongs to zookeeper in, and its design concept is the so-called MVC. Separate the flow control, display effect, and data on the interface. It seems pretty good. But in fact? Developers not only need to understand the complex jump configuration (Ajax is not yet popular), data configuration, but also need to understand the tag function for a web application. In addition, these are based on the basic principles such as JSP and servlet that must be understood (unfortunately, many people understand this part ). This is not enough. In fact, struts needs to be constantly modified during development, Java is static, and then restarted continuously (complex applications cannot be loaded automatically .) Tomcat on your machine. Let's assume that we write a piece of code for 1 minute configuration. Generally, the development, configuration, and debugging time are calculated in this way (depending on your individual judgment, the situations of different applications are slightly different .) : 1 + 0.5 + 3. The configuration is at least half the development time. Because the code needs to take effect, the configuration should wait for at least 2 minutes. The most terrible thing is that the number of times that an application or code load needs to be restarted for a logic repeatedly changes will increase significantly. For example, if a logic is modified for five times and the configuration is not modified, it is: (1 + 0 + 3) * 5. If the code is very cartoon, you only need to copy and paste it and change the name. Line. Let's assume that if we develop another function at this time, as long as the general time of the previous function is 0.5, then 0.5 + 0.5 + 3. Finally, we have preset detailed point jump configurations. OK. If the user needs to change things, wait for the white design. Even in the popular times of struts 2 and Ajax, I still want to say that struts is inefficient. Why? Does struts2 merge webwork2? Is there no formbean, can it not inherit action? Yes, yes. There are indeed a lot of improvements, but that is at best a level of webwork in. This is far from the current situation. At present, many web frameworks are designed and implemented based on struts/webwork or their concepts. I personally think this idea is no longer applicable. Unfortunately, my resume is still full-street SSH, and SSH is a secure encrypted shell.

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.