On the Ognl-2.6.11.jar and Ognl-2.7.3.jar solutions in Struts2

Source: Internet
Author: User

about theOgnl-2.6.11.jar and Ognl-2.7.3.jar in the STRUTS2
Built a simple project: There are six imported jar packages, including
Commons-fileupload-1.2.1.jar
Commons-logging-api-1.1.jar
Freemarker-2.3.15.jar
Struts2-core-2.1.8.1.jar
Xwork-core-2.1.6.jar
Ognl-2.6.11.jar

Web. XML only has filters configured
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

There is no problem running the page that exists at this time.

Replace Ognl-2.6.11.jar with a higher version of Ognl-2.7.3.jar, then run, resulting in a 404 error.
Run container as Tomcat6.0

------ Solution --------------------------------------------------------
You ognl-2.7.3.jar version of the words Org.apache.struts2.dispatcher.FilterDispatcher
To be replaced by Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
------ Solution --------------------------------------------------------

Explore
You ognl-2.7.3.jar version of the words Org.apache.struts2.dispatcher.FilterDispatcher
To be replaced by Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

On the Ognl-2.6.11.jar and Ognl-2.7.3.jar solutions in Struts2

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.