application/x-www-form-urlencoded  和   text/html 2 个不同的东西啊。

解决方案 »

  1.   

    application/x-www-form-urlencoded就是一种表单提交的方式,该方式是采用urlencode的,也就是说,提交的数据都是经过加密的,服务器端需要decode才能正确获得数据
    设置页面内容是html
      

  2.   


    post提交不需要加密的,这个我已经测试过了,application/x-www-form-urlencoded这个在struts1中也是可以获取到的,我现在u明白的是为什么在sstruts2中无法获取,必须要用text/html