解决步骤如下:
先说一句: 修改后先保存, 然后看看错误消失没?
只需要导入正确的包
properties->java build path->Libraries->Add Libaray->Myeclipse library->你需要导入的包->apply
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
public class ManagerInterceptor extends AbstractInterceptor {
这里导入时也会出问题都是没有导入相关的包,只需要同样的操作导入Struts2.1.2就好啦