In EAP 7, when optimize-scriplets="true" is enabled in undertow subsystem and a JSP has the following expression which string concatenation exists inside method arguments:
<img src='<%=response.encodeURL(request.getContextPath() + "/image/test.jpg")%>'/>
...