Solutions that hint HttpServletRequest cannot be referenced in the project about imports in the Eclipse project

Source: Internet
Author: User

Solutions that hint HttpServletRequest cannot be referenced in the project about imports in the Eclipse project

When you use Eclipse to import external Web projects, sometimes you will be prompted HttpServletRequest, Servletactioncontext can not find the situation,
Workaround:
(Note: I have quoted the Struts2 jar package, classpath have, but Eclipse does not know, prompting me to go with BuildPath, very weird)
----------------------------------------------------------------------------------------------------
Select the item-->properties-->targeted runtimes--> Select the server you use in the right window


In accordance with this method, the problem is solved, but still do not understand.

Servletactioncontext in the jar bag of struts2, why is it related to Tomcat's bag?

In short, with struts2 jar package, do not know how many problems have occurred, more can not, less also not. Not good enough, no;

Version conflicts, or not. It's been a waste of time just with a jar package before you start a project. I really hate struts.

Solutions that hint HttpServletRequest cannot be referenced in the project about imports in the Eclipse project

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.