在myeclipse中选择响应的jar文件右击选择properties选择Java Source Attachment找到struts的路径。。。/struts-2.3.4/src/core/src/main/java即可