struts2的json插件配置详解(附demo)

上传者: gaoshang502 | 上传时间: 2022-06-28 22:53:53 | 文件大小: 3.92MB | 文件类型: RAR
为了方便ajax调用传输数据,在struts2中加入的json插件用来做对象的序列化和反序列化,json插件的下载地址 http://code.google.com/p/jsonplugin/ 1. 下载json插件包,将jar包拷贝到WEB-INF/lib目录 注:struts2的json插件有两个版本0.32和0.34,我用的struts2的版本是2.0.11,在加入0.34版本json插件时启动发生异常,提示找不到相关方法,后来就换成了低版本的0.32一切OK,仔细查看文档后发现struts2的2.0.*版本的对应插件的0.32版本,struts2.1.*版本对应0.34版本

文件下载

资源详情

[{"title":"( 28 个子文件 3.92MB ) struts2的json插件配置详解(附demo)","children":[{"title":"strutsJson","children":[{"title":".project <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 86B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 330B </span>","children":null,"spread":false}],"spread":true},{"title":".mymetadata <span style='color:#111;'> 303B </span>","children":null,"spread":false},{"title":"WebRoot","children":[{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"freemarker-2.3.13.jar <span style='color:#111;'> 849.89KB </span>","children":null,"spread":false},{"title":"ognl-2.6.11.jar <span style='color:#111;'> 164.14KB </span>","children":null,"spread":false},{"title":"commons-logging-1.0.4.jar <span style='color:#111;'> 37.12KB </span>","children":null,"spread":false},{"title":"xwork-2.1.2.jar <span style='color:#111;'> 2.18MB </span>","children":null,"spread":false},{"title":"struts2-core-2.1.6.jar <span style='color:#111;'> 719.45KB </span>","children":null,"spread":false},{"title":"commons-fileupload-1.2.1.jar <span style='color:#111;'> 56.42KB </span>","children":null,"spread":false},{"title":"log4j-1.2.8.jar <span style='color:#111;'> 344.40KB </span>","children":null,"spread":false},{"title":"jsonplugin-0[1].34.jar <span style='color:#111;'> 46.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"log4j.properties <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"json","children":[{"title":"action","children":[{"title":"TestAction.class <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"BaseAction.class <span style='color:#111;'> 577B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"struts.xml <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"struts-test.xml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 5.37KB </span>","children":null,"spread":false},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 39B </span>","children":null,"spread":false}],"spread":true},{"title":"js","children":[{"title":"json2.js <span style='color:#111;'> 16.90KB </span>","children":null,"spread":false},{"title":"ajaxUtil.js <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".myeclipse","children":null,"spread":false},{"title":"src","children":[{"title":"log4j.properties <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"json","children":[{"title":"action","children":[{"title":"TestAction.java <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"BaseAction.java <span style='color:#111;'> 293B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"struts.xml <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"struts-test.xml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 975B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明