http://www.cnblogs.com/javadu/archive/2012/02/28/tomcat.html
Tomcat 5.5.35 下发生的错误:
代码:
?
<html:option value="<%= hmpElement.get("value") %>">
</html:option>
错误:
?
org.apache.jasper.JasperException: /jsp/demo.jsp(25,14) Attribute value hmpElement.get("value") is quoted with " which must be escaped when used within the value
中文:引号内不能在使用引号。
原则上是这样的,但是我们这种写法完全正确。这可能是Tomcat的一个bug。
此问题是由于tomcat5.5.28及以上版本升级引起。
1. 可以修改代码如下:
?
<jsp:include page="fastpost.jsp">
<jsp:param name="returl" value='<%=Url.encode(“***”) %>' /> </jsp:include>
2. 可以在catalina.sh中加入(tomcat 压缩版使用):
?
JAVA_OPTS="-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false"
3. 或者可以在Tomcat的Java Options中加入(TOMCAT安装版使用):
?
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
分享到:
相关推荐
集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...
TAC KBP website (2014 was the last year in which the Chinese Entity Linking evaluation was conducted as of the time this package was created) at http://nlp.cs.rpi.edu/kbp/2014/ This package contains...
java运行依赖jar包
java运行依赖jar包
java运行依赖jar包
DKIM - the signature verification should be disabled when retrieving the message header. UDP server and all descendant components: there were issues with starting of listening socket (the server was ...
NULL 博文链接:https://netalpha.iteye.com/blog/603728
The answers to those questions must be equally simple to be useful. Getting the answers isn’t simple and that’s why a lot of this book is devoted to how the test manager gets answers and interprets...
my $escaped = javascript_value_escape(q!&foo"bar'[removed]!); # $escaped is "\u0026foo\u0022bar\u0027\u003c\/script\u003e" my $html_escaped = javascript_value_escape(Text::Xslate::Util::escape_html(q!...
对所有汉字的各种编码,进行详细整理。包括拼音、GBK、UTF-8、unicode、Escaped编码等。
2015年春八年级英语下册 Unit 3 Lesson 16 The Pear Escaped学案(无答案)(新版)冀教版
It is used as a text classification benchmark in the following paper: Xiang Zhang, Junbo Zhao, Yann LeCun. Character-level Convolutional Networks for Text Classification. Advances in Neural ...
It is used as a text classification benchmark in the following paper: Xiang Zhang, Junbo Zhao, Yann LeCun. Character-level Convolutional Networks for Text Classification. Advances in Neural ...
It is used as a text classification benchmark in the following paper: Xiang Zhang, Junbo Zhao, Yann LeCun. Character-level Convolutional Networks for Text Classification. Advances in Neural ...
Therapeutic metaphors for children and the child within. New York: Brunner/Mazel, 261 pp., [dollar]28.50 100 Book Reviews Aspirations aside, Barth escaped. Unfortunately, his turmoil lingered. To...
用于 SEO 和 UX 的逻辑转义片段 概括: 创建此代码是为了帮助您创建 Google 可以抓取的基于 AJAX 的繁重页面。 尤其是在电子商务网站上,SEO 是最重要的事情之一。 这个插件调用了两个函数。...key=value` 翻译成`u
转义片段 Chrome 扩展此扩展程序旨在像搜索引擎机器人一样轻松抓取您的 Web 应用程序。 此扩展名将替换 #!... escaped_fragment并为您拒绝 Javascript。 使您能够看到搜索引擎机器人将看到的内容。
The main reason Mac users have largely escaped the threats of viruses and other malware is that most of the people creating such nasty software simply want the most bang for their buck — so they ...
let nvpString = 'KEY=VALUE&ESCAPED[5]=& [1]=' ; let json = nvpjson . toJSON ( nvpString ) ; /* * {KEY: 'VALUE', ESCAPED: '& [1]='} */ let nvp = nvpjson . toNVP ( { KEY : 'VALUE' , ESCAPED : '& [1]...
Therapeutic metaphors for children and the child within. New York: Brunner/Mazel, 261 pp., [dollar]28.50 100 Book Reviews Aspirations aside, Barth escaped. Unfortunately, his turmoil lingered. To...