摘要:
实现的JSP页面位置 web-root/jsp/user/add.jsp /update.jsp // /* @Namespace("/t") @AllowedMethods(value={"add","update"}) //方法,如test!add @Action(value="test", r 阅读全文
摘要:
一、实验环境 1、struts2基本包 2、json-plugin 在struts2的lib下可以找到。 3、web.xml 加入struts2 <filter> <filter-name>struts252</filter-name> <filter-class>org.apache.struts 阅读全文
摘要:
一、实验环境的搭建 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 < 阅读全文
摘要:
1、报错(部分) 2、解决 虽然Spring的jdk要求如下,但是spring 3与jdk1.8不兼容(使用的是spring 3.2) 在eclipse将jdk版本下调。这里将JDK调到1.7(在eclipse如下设置) 同时,需要设置服务器Tomcat的运行环境,同样改为1.7 阅读全文