STRUTS2 Technology Insider----In-depth analysis Struts2 architecture and Design (i.)

Source: Internet
Author: User

STRUTS2 's core entry program, which is functionally necessary to handle HTTP requests, is the basic requirement of the presentation layer framework. To achieve this, STRUTS2 has followed the servlet standard without exception, by implementing the standard filter interface for HTTP request processing.

By specifying this implementation class in Web. XML, we can introduce the STRUTS2 framework into the application.

<filter><filter-name>struts2</filter-name>        <filter-class> org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter</filter-class></filter>< Filter-mapping><filter-name>struts2</filter-name><url-pattern>*.action</url-pattern ></filter-mapping>

The difference is that all URL requests are processed by struts, and the latter is just a request ending with an action

STRUTS2 Technology Insider----In-depth analysis Struts2 architecture and Design (i.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.