CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 通讯/手机编程 android开发

文件名称:servlettest

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-04-16
  • 文件大小:
    146.55kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

Java看的HTTP网络编程,网络通信编程实例,适用于Android网络编程。在测试代码中服务端我使用三种方式:S2SH、只用Struts2、Servlet。客户端就一种,只不过换个请求的URL。服务端和客户端交互使用了两种方式:XML、JSON,目前开放平台返回的数据都是支持这两种数据格式的。所以我也实现了这两种数据格式。其实还有一种格式,就是google的protocal buffer,这种形式在国内用的人比较少,我也没弄,感兴趣的同学看我提供的文档,自己研究吧。注意把里面的IP换成自己电脑的IP地址。

   在使用Servlet的服务端,可以通过下面这种方式设置返回类型,但是其实没用,你设置了,它也不返回。你只能自己封装XML文件或者JSON字符串,然后返回-Java HTTP watch network programming, network communications programming examples for Android network programming. In the test code in the server I use three ways: S2SH, only Struts2, Servlet. On a client, but another URL request. Service and client interaction used in two ways: XML, JSON, the current data returned is an open platform supports both data formats. So I have realized these two data formats. In fact, there is a format that is google' s protocal buffer, this form in the country with relatively few people, I did not get the students interested to see documents I provide, own research. Note that the inside of the IP address of their computer' s IP replaced. In using the Servlet server, you can set up this way by following the return type, but in fact useless, you set up, it does not return. You can only own package XML file or JSON string, and then return
(系统自动生成,下载前可以参看下载内容)

下载文件列表

WebAndroidClient/.classpath
WebAndroidClient/.project
WebAndroidClient/AndroidManifest.xml
WebAndroidClient/bin/classes.dex
WebAndroidClient/bin/com/parabola/main/Cache$CacheHolder.class
WebAndroidClient/bin/com/parabola/main/Cache.class
WebAndroidClient/bin/com/parabola/main/LoginActivity$1.class
WebAndroidClient/bin/com/parabola/main/LoginActivity.class
WebAndroidClient/bin/com/parabola/main/LoginProtocol.class
WebAndroidClient/bin/com/parabola/main/R$attr.class
WebAndroidClient/bin/com/parabola/main/R$drawable.class
WebAndroidClient/bin/com/parabola/main/R$id.class
WebAndroidClient/bin/com/parabola/main/R$layout.class
WebAndroidClient/bin/com/parabola/main/R$string.class
WebAndroidClient/bin/com/parabola/main/R.class
WebAndroidClient/bin/com/parabola/main/User.class
WebAndroidClient/bin/com/parabola/main/WelcomeActivity.class
WebAndroidClient/bin/resources.ap_
WebAndroidClient/bin/WebAndroidClient.apk
WebAndroidClient/default.properties
WebAndroidClient/gen/com/parabola/main/R.java
WebAndroidClient/proguard.cfg
WebAndroidClient/readme
WebAndroidClient/res/drawable-hdpi/icon.png
WebAndroidClient/res/drawable-ldpi/icon.png
WebAndroidClient/res/drawable-mdpi/icon.png
WebAndroidClient/res/layout/main.xml
WebAndroidClient/res/layout/welcome.xml
WebAndroidClient/res/values/strings.xml
WebAndroidClient/src/com/parabola/main/Cache.java
WebAndroidClient/src/com/parabola/main/LoginActivity.java
WebAndroidClient/src/com/parabola/main/LoginProtocol.java
WebAndroidClient/src/com/parabola/main/User.java
WebAndroidClient/src/com/parabola/main/WelcomeActivity.java
WebAndroid/.classpath
WebAndroid/.mymetadata
WebAndroid/.project
WebAndroid/.settings/.jsdtscope
WebAndroid/.settings/org.eclipse.jdt.core.prefs
WebAndroid/.settings/org.eclipse.wst.jsdt.ui.superType.container
WebAndroid/.settings/org.eclipse.wst.jsdt.ui.superType.name
WebAndroid/src/applicationContext-actions.xml
WebAndroid/src/applicationContext-beans.xml
WebAndroid/src/applicationContext-commons.xml
WebAndroid/src/com/parabola/action/UserAction.java
WebAndroid/src/com/parabola/dao/impl/IUserDao.java
WebAndroid/src/com/parabola/dao/impl/UserDaoImpl.java
WebAndroid/src/com/parabola/entity/User.hbm.xml
WebAndroid/src/com/parabola/entity/User.java
WebAndroid/src/com/parabola/service/impl/IUserServcie.java
WebAndroid/src/com/parabola/service/impl/UserServiceImpl.java
WebAndroid/src/hibernate.cfg.xml
WebAndroid/src/struts.xml
WebAndroid/WebRoot/index.jsp
WebAndroid/WebRoot/META-INF/MANIFEST.MF
WebAndroid/WebRoot/WEB-INF/classes/applicationContext-actions.xml
WebAndroid/WebRoot/WEB-INF/classes/applicationContext-beans.xml
WebAndroid/WebRoot/WEB-INF/classes/applicationContext-commons.xml
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/action/UserAction.class
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/dao/impl/IUserDao.class
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/dao/impl/UserDaoImpl.class
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/entity/User.class
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/entity/User.hbm.xml
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/service/impl/IUserServcie.class
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/service/impl/UserServiceImpl.class
WebAndroid/WebRoot/WEB-INF/classes/hibernate.cfg.xml
WebAndroid/WebRoot/WEB-INF/classes/struts.xml
WebAndroid/WebRoot/WEB-INF/page/index.jsp
WebAndroid/WebRoot/WEB-INF/page/register.jsp
WebAndroid/WebRoot/WEB-INF/web.xml
WebAndroid/开发文档/开发文档
StrAnd/.classpath
StrAnd/.mymetadata
StrAnd/.project
StrAnd/.settings/.jsdtscope
StrAnd/.settings/org.eclipse.jdt.core.prefs
StrAnd/.settings/org.eclipse.wst.jsdt.ui.superType.container
StrAnd/.settings/org.eclipse.wst.jsdt.ui.superType.name
StrAnd/src/com/dongzi/action/loginAction.java
StrAnd/src/struts.xml
StrAnd/WebRoot/index.jsp
StrAnd/WebRoot/META-INF/MANIFEST.MF
StrAnd/WebRoot/WEB-INF/classes/com/dongzi/action/loginAction.class
StrAnd/WebRoot/WEB-INF/classes/struts.xml
StrAnd/WebRoot/WEB-INF/web.xml
ServletTest1/.classpath
ServletTest1/.mymetadata
ServletTest1/.project
ServletTest1/.settings/.jsdtscope
ServletTest1/.settings/org.eclipse.jdt.core.prefs
ServletTest1/.settings/org.eclipse.wst.jsdt.ui.superType.container
ServletTest1/.settings/org.eclipse.wst.jsdt.ui.superType.name
ServletTest1/ReadMe
ServletTest1/src/data.java
ServletTest1/WebRoot/index.jsp
ServletTest1/WebRoot/META-INF/MANIFEST.MF
ServletTest1/WebRoot/WEB-INF/classes/data.class
ServletTest1/WebRoot/WEB-INF/lib/commons-logging.jar
ServletTest1/WebRoot/WEB-INF/web.xml
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/dao/impl
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/service/impl
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/action
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/dao
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/entity
WebAndroid/WebRoot/WEB-INF/classes/com/parabola/service
StrAnd/WebRoot/WEB-INF/classes/com/dongzi/action
WebAndroid/src/com/parabola/dao/impl
WebAndroid/src/com/parabola/service/impl
WebAndroid/WebRoot/WEB-INF/classes/com/parabola
StrAnd/WebRoot/WEB-INF/classes/com/dongzi
WebAndroidClient/bin/com/parabola/main
WebAndroidClient/gen/com/parabola/main

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com