摘要: 废话不多,直接上图:(色泽比较重的是追踪的路径) 阅读全文
posted @ 2013-07-01 23:58 一天不进步,就是退步 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 和配置文件相对应的代码(struts1) public void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { // Wrap multipart requests with a special wrapper request = processMultipart(request); // Identify the path component we will use to select a mapping String path 阅读全文
posted @ 2013-07-01 01:59 一天不进步,就是退步 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.集成tomcat到eclipsehttp://www.eclipsetotale.com/tomcatPlugin.html下载最新的plug后,解压。解压后的文件放到eclipse的plug目录中2.使用struts配置文件web.xml/struts-config.xml中的元素必须按照dtd文档定义顺序书写,即遵从了dtd定义顺序。 常见的错误是顺序错误导致不能识别。例如web.xml文件中 index.jsp 放到servlet或者servlet-mapping前会报错,找不到相应的资源。3.继承struts 的Action必须实现的是execute方法而非perfor... 阅读全文
posted @ 2013-07-01 00:09 一天不进步,就是退步 阅读(163) 评论(0) 推荐(0) 编辑