The difference between servletcontext,actioncontext,servletactioncontext

Source: Internet
Author: User

http://blog.csdn.net/ocean1010/article/details/6160159

ServletContext from his package information, it is the standard Java EE WebApplication class Library

ServletContext provides a standard servlet runtime environment, which is actually a way for some servlets and web container to communicate


Actioncontext originates from the Struts2 and Struts1 of the nature of the different.
Struts1, all *.do are handled by a servlet (servlet org.apache.struts.action.ActionServlet)
STRUTS2, all requests are processed by a filter (Org.apache.struts2.dispatcher.FilterDispatcher)
Struts1 still belongs to the servlet category, and Struts1 action is still the servlet.
Struts2 action is already an ordinary Java bean and has jumped out of the servlet framework
Actioncontext is to make up for the flaw in the Web environment caused by STRTUS2 action jumping out of the standard servlet framework

Actioncontext's main role: to provide a Web environment context to address thread safety issues to solve some of the compatibility issues with other frameworks or containers (sitemesh,weblogic) Servletactioncontext In fact, Actioncontext's sub-class, its function is derived from the Actioncontext, the Actioncontext method has made a certain packaging, providing a more convenient and intuitive method

Related Article

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.