首页 > 解决方案 > 跨站点脚本 JSP(使用 cout 标签而不是 out.print)

问题描述

嗨,我的 JSP 代码如下所示。

<span class="errortext">
<%
if(ExceptionUtil.getServiceExceptionMessage(ex).toString().indexOf("WMSYS.WM_CONCAT")>=0){
out.print("Sorry")
}
else

**out.print(ExceptionUtil.getServiceExceptionMessage(ex));**

%>
</span>

我需要在其他部分做 xss out.print

标签: jspxss

解决方案


推荐阅读