window.open(url)的时候服务器发生错误!
错误信息:<2013-3-20 上午11时26分26秒 CST> <Error> <HTTP> <BEA-101020> <[ServletContext@439831801[app:hnwstWeb module:hnwstWeb.war path:/stms spec-version:2.5 version:hnwst201303192026]] Servlet failed with Exception
java.lang.IllegalArgumentException: Header:Location Cannot contain CRLF Charcters
at weblogic.servlet.internal.ServletResponseImpl.checkForCRLFChars(ServletResponseImpl.java:1658)
at weblogic.servlet.internal.ServletResponseImpl.setHeader(ServletResponseImpl.java:907)
at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:856)
at com.iris.framework.servlet.RedirFilter.doFilter(RedirFilter.java:86)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
Truncated. see log file for complete stacktrace
服务器 java url --------------------编程问答-------------------- CRLF -- Carriage-Return Line-Feed 回车换行
就是包含回车换行符了,检查下
--------------------编程问答--------------------
<a href="###" onclick="submitProposal('t0pTBoVDeWmHUJcurS647JEJoFyudGE3%0D%0A')">填写</a>
function submitProposal(url)
{
window.open('/stms/redir.do?pageCode='+url, "smallwin","width=560,height=320,channelmode=yes;status=yes,resizable=no,top=280,left=300");
}
没有回车符号啊! --------------------编程问答-------------------- do?后面是否是换行符 --------------------编程问答--------------------
不是啊!我重新写了一下还是不行! --------------------编程问答-------------------- 解决了,是因为字符串加密的时候自动的在后面加了一个回车空行符号。
补充:Java , Java EE