摘要:
问题描述:使用s2时,页面使用<input>在action中实现了接口ServletRequestAware。使用set方式注入获取requestpublic class XXController extends BaseAction implements ServletRequestAware{ public HttpServletRequest req; @Override public void setServletRequest(HttpServletRequest req) { this.req= req; }}(注:以上为改别人代码 保持代码原样。项目开发... 阅读全文
posted @ 2012-09-10 18:11
学业未成
阅读(191)
评论(0)
推荐(0)
摘要:
Tomcat版本:6.0.32页面及代码编码:UTF-8问题描述: 表单中一些元素未出现乱码问题,select等选择器获取text时数据保存正确,请求返回时值正确,但是显示出来变为乱码。解决方法: Tomcat配置文件server.xml中(参考:http://developer.51cto.com/art/200906/132667.htm)<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443&q 阅读全文
posted @ 2012-09-10 11:39
学业未成
阅读(265)
评论(0)
推荐(0)
浙公网安备 33010602011771号