前面提到过Strtus2在2.1.6以后就将Json格式整合到Strtus中了,可见到struts-json-plugin,在Struts的文档里面有下面一段例子: Example Setup Action This simple action has some fields: Example: Write the mapping for the action Add the map inside a package that extends "json-default" Add a result of type "json" Example: JSON example output 如例子…
2011-07-14 00:13 · Java · utils · Java · json
需要用到servlet-api.jar
2011-05-13 21:20 · Java · utils · Java · Servlet