一,服务器端:
首先搭建struts2的环境,导入必要的类库。
web.xml文件:
struts.xml文件:
Action类:
访问 http://localhost:8080/Client/getjson.action;结果:
二,android客户端:
Activity类:
list.xml
主要的交互都是通过goolge的Gson完成
一,服务器端:
首先搭建struts2的环境,导入必要的类库。
web.xml文件:
二,android客户端:
Activity类:
主要的交互都是通过goolge的Gson完成
相关文章: