Mantis - Resin
Viewing Issue Advanced Details
4685 minor always 07-26-11 08:08 07-26-11 14:45
dicr  
ferg  
normal  
closed 4.0.20  
fixed  
none    
none 4.0.21  
0004685: jsp:include corrupt params
Using jsp:include with jsp:param broke params - char '&' translated to '='.
Test page:

=== jspinclude.jsp ===

<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html><body>
  <jsp:include page="jspinclude.jspf">
    <jsp:param name="str" value="X&X"/>
  </jsp:include>
</body></html>

/===

=== jspinclude.jspf ===

<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<% out.println(request.getParameter("str")); %>

/===





all '&' characters in param translated to '='

===
Param str: X&X
Result is: X=X

Param str: X&amp;X
Result is: X=amp;X

Notes
(0005405)
ferg   
07-26-11 14:45   
jsp/15lp