Too depressing. A new Tomcat 6.0.20 is installed, and a 404 exception is found in it.ProgramIt cannot always run.CodeI copied it from another code in use. The Code is as follows:
<JSP: Include page = "search. JSP "> <br/> <JSP: Param name =" keyword "value =" <% = new string (key. getbytes ("UTF-8"), "ISO-8859-1") %> "/> <br/> </jsp: Include>
Of course, the key in it can be used normally.
So whether this method cannot be used in value? Therefore, it is changed
String keyword = new string (key. getbytes ("UTF-8"), "ISO-8859-1"); <br/>%> <br/> <JSP: Include page = "search. JSP "> <JSP: Param name =" keyword "value =" <% = keyword %> "/> </jsp: Include> <br/> <%
Running properly, a bit strange. In previous versions, strings and expressions are not allowed in parameters, for example
Value = "myprefix <% = ID %>"
And use
Value = "<% =" myprefix "+ id %>
Yes. Is this version not allowed?
In short, when you use a changed parameter, it is always correct to use it after processing it out.
a little lesson, hehahaha!