Attribute value request.getAttribute("pageNo") is quoted with " which must be escaped when used within the value
今天突然遇到这个奇怪的问题:google了一下,发现如下原因:
转载自:csdn博客
遇到这样的问题在网上找了解决方案现总结2点:
解决以上问题有两种解决方案:
方案一
<jsp:include page="split_page.jsp">
<jsp:param name="jspUrl" value="<%=jspUrl%>" />
<jsp:param name="lineSize"
value="<%=request.getAttribute("lineSize")%>" />
<jsp:param name="searchFlag" value="T" />
</jsp:include>
这里,在 value 中只是使用了 URL 而已。
然后报错:
Attribute value request.getAttribute("lineSize") is quoted with " which must be escaped when used within the value
啊,无语,在另一个页面中这么写就没错啊?
Google。
发现说是什么 apache 升级到 6.0 后出现的 bug。
详情见:
[#MMB-1706] quoted must be escaped - MMBase
然后跟踪链接,这里说的很详细了:
Possible user code changes required when we upgrade to Tomcat 6.0.18
按照上面的说法,这么改写:
<jsp:include page="split_page.jsp">
<jsp:param name="jspUrl" value="<%=jspUrl%>" />
<jsp:param name="lineSize"
value='<%=request.getAttribute("lineSize")%>' />
<jsp:param name="searchFlag" value="T" />
</jsp:include>
其实只是把 value="" 改成 value=''。
方案二
把代码改成
<jsp:include page="split_page.jsp">
<jsp:param name="jspUrl" value="<%=jspUrl%>" />
<jsp:param name="lineSize"
value="<%=request.getAttribute(/"lineSiz/")%>" />
<jsp:param name="searchFlag" value="T" />
</jsp:include>
虽然在编辑器中会显示有错 但是运行起来是没有问题,tomcat版本的问题
分享到:
相关推荐
集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...
Each index row in node pages contains an index key (or set of keys for a composite index) and a pointer to a page at the next level for which the first key value is the same as the key value in the ...
original input filename is used as the AML output filename, with an ".aml" extension. Implemented a generic batch command mode for the AcpiExec utility (execute any AML debugger command) (Valery ...
directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...
Bug with Locate when a NULL value is present in the index field is fixed Bug with IndexFieldNames when DataTypeMapping is enabled is fixed Bug with freeing memory in the TDADataSet.Lookup method is ...
value for the HEAD symbolic ref when the namespace feature is in use, which has been corrected. * "git am -i --resolved" segfaulted after trying to see a commit as if it were a tree, which has ...
- **Single Quotes in a String**: If a string literal contains a single quote, it must be escaped with another single quote or using escape characters. - **Standard Conforming Strings and Escape ...
Another new feature of the book is that it deals with the implementation of the method on parallel processing hardware. I. M. Smith, who has been involved in programming the finite element method for ...
retrieved and SendMessage is a boolean function (maybe someone has pressed the cancel btn).- Fixed a bug when the subject field is too large.9/2/981.5.1- Fixed a bug with a message within a message ...
-Bug with Locate when a NULL value is present in the index field is fixed -Bug with IndexFieldNames when DataTypeMapping is enabled is fixed -Bug with freeing memory in the TDADataSet.Lookup method is...
This is controlled with the show_definitions setting. Build errors are now shown inline at the location where they occurred. This is controlled with the show_errors_inline setting. Added a menu item ...
They can be used to make the input more human-readable. On input, at least a carriage return is required. A newline character is ignored so it is permissible to use carriage return/line feed pairs on ...
Bug with using quoted field names in the IndexFieldNames property is fixed Bug in TMyStoredProc with closing dataset when the Disconnected property is True is fixed Bug with processing macros named ...
When the read-only status of a file changes this will be propagated to a window associated with that file The logon form now has shortcuts for all fields, is sizeable to show long database names in ...
This is a simple tool to help pinpoint performance bottlenecks in individual ...For example, the first Lint check to run might get the blame for the initial cache misses when resolving calls, types, etc.
UNIX the last argument should be single-quoted: jad -o -r -sjava -dsrc 'tree/**/*.class' In a case you want to check the accuracy of the decompilation or just curious, there is an option -a which ...
Quoted-printable编码是一种用于电子邮件传输中的字符编码方案,它允许文本包含一些非ASCII字符,同时保持邮件的可读性。Quoted-printable编码利用可打印的ASCII字符来表示原始数据中可能无法直接显示的字节,尤其是...
4. 错误检测和恢复:解码过程可能会遇到编码错误,程序需要有机制来处理这些错误,如非法字符或不完整的编码块。 了解并熟练运用这些编码技术对于开发处理电子邮件、Web服务或者任何需要安全传输二进制数据的应用来...