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();
}
}