
Webwork
麦芽面包
这个作者很懒,什么都没留下…
展开
-
webwork数组形式提交表单及validation研究
webwork表单提交中有一个很有用的技巧,在提交成组的类似person[0].name,person[1].name的表单中,可以利用conversion使xwork自动装配对象属性到action中: form 代码: person类: public Class Person{ public String name; public Long id; get原创 2015-02-12 15:57:07 · 621 阅读 · 0 评论 -
html中generate的代码位置错位
在用freemarker时候,通过ajax发送后由webwork返回的代码把我的 结束的form标志提前结束了,查了很久的原因,似乎是由于html写法的问题. 由于我的页面是由freemarker拼装而成, 请求服务器后返回的html模板页需要由table包起来, 我没有包起来就产生了这个莫名其妙的错误.原创 2015-02-12 15:57:48 · 272 阅读 · 0 评论 -
no result type defined for type 'dispatch'mapped
自己打算弄个webwork测试问题时候,遇到个脑瘫的问题,配了xwork之后,死活找不到action,报There is no result type defined for type 'dispatcher' mapped with name 'success' 的错误,找了半天,发现需要在xwork配置文件中加入:原创 2015-02-12 15:57:01 · 265 阅读 · 0 评论