google-code-export / micrite

Automatically exported from code.google.com/p/micrite
GNU General Public License v3.0
2 stars 0 forks source link

对于convention是支持? #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
应用中尝试将struts配置文件形式替换为convention形式,比如对�
��在LoginAction中
的的loginSuccess方法,我尝试将其增加注释如下:
@Action(value = "/loginSuccess", results = { @Result(type = "json", name =
"sucess", params = {"target", "loginResult"}) }
其中的json类型采用的是您项目中的Result类型,在此情况下会�
��出missing } in
XML 
expression错误,并且无法跳入下一个action,比如main.action,不��
�这个问题
是否可以解决,还是这个自定义的json结果并不支持convention形
式的注释

Original issue reported on code.google.com by Valenti....@gmail.com on 3 Dec 2009 at 8:44

GoogleCodeExporter commented 9 years ago
json插件是我们自己写的,功能比较简单,可以看看代码,也�
��修改一下,就可以满足你的需求。
现在struts已经有官方的json插件了,不过没仔细研究过。
org.gaixie.micrite.struts2.json.JSONResult

Original comment by bit...@gmail.com on 5 Dec 2009 at 12:21

GoogleCodeExporter commented 9 years ago
谢谢您的解答,尝试过用官方哪个插件,会出一些问题,我��
�研究一下

Original comment by Valenti....@gmail.com on 7 Dec 2009 at 8:39