Get the App
SLTechnology News&Howtos  ›  Development  › 

What improvements does Struts2 have to WebWork?

Shulou Source: shulou.com Published: 2022-06-02 03:14:24 09月20日 Update

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.

Tags: Files questions documents more help answers easy similar easy personal code elements content variables guys buddies markets shadows feelings signboards Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB Shulou Technology Redmi Xiaomi