---
title: "The method getServletContext() from the type ServletActionContext refers to the "
author: "书安然"
date: "2014-11-05T19:22:40Z"
tags: ["Myeclipse", "Tomcat"]
categories: ["企业架构"]
slug: "the-method-getservletcontext-from-the-type-servletactioncontext-refers-to-the"
draft: false
lastmod: "2014-11-05T19:22:40Z"
id: 2152768
url: "https://amflytogether.iteye.com/blog/2152768"
---

<span style="color:red">导入外部工程时出现：The method getServletContext() from the type ServletActionContext refers to the missing type Servlet
</span>
解决办法：E:\software\apache-tomcat-6.0.29\apache-tomcat-6.0.29\lib 在tomcat安装目录下，复制servlet-api.jar到myeclipse工程web-inf/lib 下