struts2 request inputstream

 

struts2在解析request中的流时,必须要在客户端提交post请求时,将头部的content设置为text/html时,否则struts2解析不了。

 

httpURLConnection.setRequestProperty("content-type", "text/html");

 

refurl:http://waterdh.iteye.com/blog/202608

 

 

猜你喜欢

转载自wandejun1012.iteye.com/blog/2124287