android集合SSH搭建服务器客户端请求
http://www.cnblogs.com/janken/archive/2012/05/11/2495650.html Android实现文件上传功能(接收端用strust2)
http://www.iteye.com/topic/975479
///-------------------------------------------------------------gan----------------------------------------
HttpServletRequest request =ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
InputStream stream = request.getInputStream();
if (stream != null) {
// 创建一个缓冲字符输入流
BufferedReader bufferedreader = new BufferedReader(
new InputStreamReader(stream));
String str;
try {
// 从缓冲字符输入流中按行读取信息
while ((str = bufferedreader.readLine()) != null) {
System.out.println(str+"qqqqqqqqqqqqqqq");
}
stream.close();
} catch (IOException ioexception) {
ioexception.printStackTrace();
}
}
更多相关文章
- Android 让你的 EditText 只接受指定字符
- 微软和Wistron再度联手,Android和Chrome OS又成鱼肉
- Android设备到底侵犯了微软的什么专利
- Android中判断字符串中必须包含字母或者数字_Android
- android 复制、粘贴字符串 (判断API 11 )
- NDK编译Android字符界面的可执行程序
- Android 4.0+ 版本中的EditText字符重叠问题