json JSONArray.fromObject()不执行
来源:互联网 发布:淘宝客api调用实例php 编辑:程序博客网 时间:2024/04/30 05:00
在用json+struts2+jquery 实现ajax时遇到了如下问题:
JSONArray obj = JSONArray.fromObject(allTypeList);
上面的这句话这么也不执行.
我用的是 json-lib-2.1-jdk1.5、struts2-json-plugin-2.3.1.2.
我以为是json-lib版本的问题,就接连换了几个版本,结果还是木有反应阿。。。
后来想到可以看看他的帮助文档时怎么写的,于是上了json的官网。。。
compile
The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
GroupId ArtifactId/Version/Classifier/Type/Optional
commons-beanutils commons-beanutils /1.8.0/-/jar
commons-collections commons-collections/3.2.1/-/jar
net.sf.ezmorph ezmorph/1.0.6/-/jar
org.codehaus.groovy groovy-all 1.7.5 -/jar (optional)
oro oro/2.0.8/-/jar (optional)
xom xom/1.1/-/jar (optional)
----------------------------------
原来需要上面的包(最后三个可选).
加入以上包就Ok.
JSONArray obj = JSONArray.fromObject(allTypeList);
上面的这句话这么也不执行.
我用的是 json-lib-2.1-jdk1.5、struts2-json-plugin-2.3.1.2.
我以为是json-lib版本的问题,就接连换了几个版本,结果还是木有反应阿。。。
后来想到可以看看他的帮助文档时怎么写的,于是上了json的官网。。。
compile
The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
GroupId ArtifactId/Version/Classifier/Type/Optional
commons-beanutils commons-beanutils /1.8.0/-/jar
commons-collections commons-collections/3.2.1/-/jar
net.sf.ezmorph ezmorph/1.0.6/-/jar
org.codehaus.groovy groovy-all 1.7.5 -/jar (optional)
oro oro/2.0.8/-/jar (optional)
xom xom/1.1/-/jar (optional)
----------------------------------
原来需要上面的包(最后三个可选).
加入以上包就Ok.
- json JSONArray.fromObject()不执行
- 关于JSONArray:JSONArray jsonArray=JSONArray.fromObject(list)不执行!
- JSONObject、JSONArray.fromObject 不执行不报错
- JSONObject、JSONArray.fromObject 不执行不报错
- JSONArray.fromObject不执行不报错的解决方法
- 后台发送json数据,将List转化成json数据时执行到JSONArray distJson=JSONArray.fromObject(ChapterList)就报错的问题解决方案
- JSONArray json = JSONArray.fromObject(list_excel); list类型数据转换成JSONArray类型数据报错
- JSON的JSONObject.fromObject和JSONArray.fromArray的使用
- JSONArray 的 fromObject()方法执行时报错问题
- JSONArray.fromObject转换不了,提示JSONArray没有fromObject方法
- JSONObject json = JSONObject.fromObject(map); 执行出现异常
- 关于使用JSONArray.fromObject()方法和引入net.sf.json包所需要的jar包支持
- JSONArray.fromObject转换float类型的问题
- mybatis里使用JSONArray.fromObject()报错
- JSON之fromObject
- json fromObject() 报错 classNotFound
- java json JSONArray
- 【json】JsonObject / JsonArray
- GIT使用
- SQLite可视化管理工具汇总
- 第一章代码和结果
- Android eclipse中程序调试
- 三种权限的区别
- json JSONArray.fromObject()不执行
- linux的学习
- C++引用
- u-boot和uclinux的下载
- Tomcat 目录介绍
- struts方法被执行多次。
- struts constant详解
- arm学习的相关工具
- cin、cin.get()、cin.getline()、gets()区别与用法