1.
<s:form></s:form> 属性method的默认方法是:post
<form></form>属性的默认方法是post
2.上传表单认证
class="InputStyle {required:true, accept:'.zip'}"
3.打开网页不想有太多的内容
var url = "processDefinitionAction_downloadProcessImage.action?id=" + pdId + "&t=" + new Date();
window.showModalDialog(url, null, "dialogHeight:500px;dialogWidth:600px;resizable:yes");
4.表单采用Post方式提交,解决乱码的方法为:
request.setCharacterEncoding( myEncoding );
表单采用Get方式提交,解决乱码的方法为:
方式一:
key = new String(key.getBytes("iso8859-1"), "utf-8");
方式二:
修改server.xml: URIEncoding="utf-8"
方式三(不依赖Tomcat的配置,推荐):
浏览器中两次URL编码。
服务器中自己再做一次URL解码。