Java Open Source Tool Series (3) Struts

xiaoxiao2021-03-06  17

When you use the JSP development page, what do you think is the biggest difficulty, or where you feel the most inconvenient place?

Generally, logic processing and process control. If you only use JSP scripts to achieve more difficult. So we generally use servlet to process process control, encapsulate logic with JavaBean or custom labels.

Struts is such a framework, and he encapsulates the details of servlet and definition Javabean, providing a unified application interface for logic processing and process control. And Struts also provides a set of custom labels for developers.

The entry point of the Struts frame is a servlet, you need to configure it under the web.xml file.

Action org.apache.struts.Action.ActionServlet config /web-inf/struts-config.xml

action *. do

Thus, all * .do requests will be processed by Struts.

Related Website http://struts.apache.org

转载请注明原文地址:https://www.9cbs.com/read-45429.html

New Post(0)