I. problem
Why not use the struts framework
Struts is an open framework that many of its underlying is a model of web development. Many classic patterns listed in the "J2EE Design Mode" are reflected in Struts. I think that the most useful Struts is its control framework, that is, Action, others are supporting.
It is very inconvenient to use Struts to develop, and the configuration is cumbersome, although there are many auxiliary tools, but it is still very troublesome. TAG provided by Struts is also very complicated. It takes a lot of time to learn. When a page requires a lot of JavaScript interaction, these TAGs are more complicated, so on the page layer or the original HTML tag practical.
As for the MODEL layer of Struts, it is also redundant because it may be completely Hibernate instead of the JDBC connection. So the database connection provided by Struts is almost unused.
2.Struts Control Framework
It is most useful to mention the Struts control framework, what works do Struts doing on the control layer?
1) Automatic transmission value of page layer parameters
When a Struts Form is defined, the parameter value of the page containing the FORM can be received. For example, there is a Name member variable in the form, there is a
2) Extended automatic values
The auto-transmitted values mentioned above also apply to the upload form. Since the FORM containing the upcoming form must be defined as