摘要: 实现的JSP页面位置 web-root/jsp/user/add.jsp /update.jsp // /* @Namespace("/t") @AllowedMethods(value={"add","update"}) //方法,如test!add @Action(value="test", r 阅读全文
posted @ 2016-09-02 16:12 jway0101 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 一、实验环境 1、struts2基本包 2、json-plugin 在struts2的lib下可以找到。 3、web.xml 加入struts2 <filter> <filter-name>struts252</filter-name> <filter-class>org.apache.struts 阅读全文
posted @ 2016-09-02 16:07 jway0101 阅读(18525) 评论(0) 推荐(2) 编辑
摘要: 一、实验环境的搭建 1、Spring mvc jar。 导入spring mvc运行所需jar包。导入如下(有多余) 2、json的支持jar 3、加入jQuery。 选用jquery-3.0.0.min.js,放在WebRoot/JS文件夹 导入jQuery到jsp页面如下 4、web.xml < 阅读全文
posted @ 2016-09-02 15:59 jway0101 阅读(28909) 评论(0) 推荐(0) 编辑
摘要: 1、报错(部分) 2、解决 虽然Spring的jdk要求如下,但是spring 3与jdk1.8不兼容(使用的是spring 3.2) 在eclipse将jdk版本下调。这里将JDK调到1.7(在eclipse如下设置) 同时,需要设置服务器Tomcat的运行环境,同样改为1.7 阅读全文
posted @ 2016-09-02 15:46 jway0101 阅读(2884) 评论(0) 推荐(0) 编辑