In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly analyzes the relevant knowledge of what are the nine characteristics of Struts and WebWork. the content is detailed and easy to understand, and the operation details are reasonable, which has a certain reference value. If you are interested, you might as well follow the editor and learn more about "what are the nine features of Struts and WebWorkplace".
WebWork joined the Struts community to push the next version of Struts, which includes WebWork and is renamed "Struts Action Framework 2.0". Of course, the existing WebWork version and bug will continue to be maintained, but there will be no separate next version, and the new version will all be integrated into Struts.
This is good news. It has always been thought that the framework model of struts has begun to lag behind and will be slowly replaced by other frameworks, such as aggressive JSF or Tapestry. Now it seems superfluous to worry. Struts is an important project of Apache.
It will not be easily taken away from Web Application Framework for Java. There seems to be no complaint from the WebWork community, and perhaps this is what many people would like to see.
Compare the advantages and disadvantages of Struts and WebWork:
1. Use tags.
Struts has many custom tags, which are complex to learn, but at the same time powerful. Webwork defines only one webwork.tld, which makes it easier to operate.
two。 Validation and javascript support.
Struts supports client-side JavaScript and server-side verification. The client-side verification of webwork is not beautiful. Specifically, it supports javascript, but because it is a beginner, it has not been tried.
Both 3.struts and webwork support
Velocity.struts supports the use of velocity tools,webwork to embed velocity directly. In comparison, the webwork display is more flexible and the configuration is simpler.
4. Support for plug-ins.
Struts compared with WebWork, Struts as a more mature product, with titles, validator plug-ins, can also write their own plug-ins, loaded through the struts configuration file. The webwork implementation plug-in is implemented through custom component.xml.
5. Display aspect.
The layout of struts is more flexible because it supports titles. Switching between webwork and velocity is easy and different display templates can be customized, but the customization process is more cumbersome.
The degree of support of 6.hibernate.
Struts is implemented through filters and plug-ins. Webwork has special plug-ins: org.hibernate.admin.component.HibernateSessionFactory and org.hibernate.admin.component.HibernateSession
7. Modular development.
Struts support modular development, support switchAction.webwork temporarily do not know whether to support team development, support action reuse.
8. Show definition formbean.struts
You need to display the definition formbean or define dynamic properties through a configuration file. Struts compared to WebWork, webwork does not need to define formbean or related properties, and captures the properties directly through the interceptor.
9. Data acquisition.
Struts open source project, many supporters, Apache project documentation is relatively complete. There are few documents and learning materials related to webwork.
This is the end of the introduction on "what are the nine features of Struts and WebWorkplace respectively". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 247
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.