alert("<%=request.getContextPath()%>/wfProcAction.do?method=doAction&wfentryid="+wfentryid+"&stepid="+stepid+"&actionid="+actionid+"&stepname="+stepname+"&actionname="+actionname);window.location.href="<%=request.getContextPath()%>/wfProcAction.do?method=doAction&wfentryid="+wfentryid+"&stepid="+stepid+"&actionid="+actionid+"&stepname="+stepname+"&actionname="+actionname; 用alert()打出的连接一切正正常,但在action方法中取出参数的时候就出问题。好像是由于乱码所以url错乱,取不到参数。但alert()显示的结果没有乱码,这怎么解决!!
解决方案 »
- 关于泛型的问题
- tomcat页面引入自定义类
- Hibernate使用原生SQL查询
- 网页主窗口和弹出窗口中五笔输入法会不一致?
- 页面抓拍问题
- 在<% %> 中定义的变量与<%! %>中定义的变量有什么不同?
- 主从表结构的表单(比如入库单,主主表信息和从表信息构成)在对从表进行修改的时候,如何操作? 急急急
- 求助:出现错误 The server encountered an internal error () that prevented it from fulfilling this request.
- 请问在jsp中应该将Javabean放在何处!
- applet 调用 servlet 问题 ,急
- 新手问:在sql语句中怎么将表中的字段值string转换成int
- 关于jsp调用javabean
http://www.blogjava.net/rickhunter/articles/33571.html
修改tomcat的server.xml文件中URIEncoding。
为什么你alert没错误,而执行起来就有错误呢?那时因为你页面取值并没问题,但通过tomcat以后,编码就出问题,所以执行就有错误。