文件名称:servlettest
介绍说明--下载内容来自于网络,使用问题请自行百度
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
在使用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
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.