随笔分类 -  Java/Web

摘要:前几天回家了一趟,唉,回家的感觉真爽。不多废话,jQuery在发送ajax请求时,如果请求的参数里有数组对象,后台的Struts2在用List作为接收对象的时候,会报OGNL错误:ognl.ExpressionSyntaxException: Malformed OGNL expression: arrayList[] [ognl.ParseException: Encountered " "]" "] "" at line xx, column xx.放狗搜到一篇相关的文章:http://www.cnblogs.com/tanhao 阅读全文
posted @ 2011-12-17 19:32 ini_always 阅读(9668) 评论(0) 推荐(0)
摘要:struts2的json plugin可以实现struts2和json的完美结合,由于本篇主要是介绍整合过程中遇到的问题,所以编程实现的方法这里就不重复了,具体可以参看struts2的官方文档:http://struts.apache.org/2.2.1.1/docs/json-plugin.html。我在struts.xml中有如下action定义:<action name="product_group" class="customers.products" method="getGroups"> <result 阅读全文
posted @ 2011-10-15 16:08 ini_always 阅读(29120) 评论(1) 推荐(3)