Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What improvements does Struts2 have to WebWork?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What improvements has Struts2 made to WebWork? in view of this question, this article introduces in detail the corresponding analysis and solutions, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Recently downloaded struts2.0.6, but really big, decompressed about 150m, looked carefully, ran its own several demo, and looked at the code, can be said to be basically the same as webwork2, the core basically did not change, the feeling changed the package name, said that struts and webwork merge, personally feel that webwork uses the sign of struts to find the market, struts uses webwork2 to get rebirth, because in struts2 basically can not see the shadow of struts1.

Struts2's improvements to webwork:

Variables in the 1.webwork.properties file can now be configured in the following files (as described in struts2's own documentation):

Struts-default.xml

Struts-plugin.xml (in the jar package of each plugin)

Struts.xml (with constant elements)

Struts.properties

(no default file, optional, similar to webwork.properties file, each project can have this file)

Web.xml

Here is an example from the documentation that comes with struts2

Constant Example (struts.xml)... Constant Example (struts.properties) struts.devMode = trueConstant Example (web.xml) struts org.apache.struts2.dispatcher.FilterDispatcher struts.devMode true...

two。 Wildcard support has been added, which is not available in ww2, as follows:

/ tutorial/ {1} .jsp action > this is the answer to the question about what improvements Struts2 has made to WebWork. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

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: 0

*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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report