在Struct action 中接收 post 方式提交上来的数据,
用request.getInputStream();但是得不到数据,这是问什么啊,原因是数据没有 name ,所以不能用getParameter();方法。
求高手指点一下 。

用request.getInputStream();但是得不到数据,这是问什么啊,原因是数据没有 name ,所以不能用getParameter();方法。
求高手指点一下 。

解决方案
10
enctype=”multipart/form-data”
30
本人是这样解决的:
conn.setRequestProperty("content-type", "text/html");