jsp - 跨站点脚本 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
。
解决方案
推荐阅读
- java - 考虑到带有数字的字符串结尾(在方括号内),如何将字符串拆分为两个
- python - 将 Django Celery Beat 连接到正确的数据库
- amazon-web-services - IAM角色是否只适用于发起通信的资源?
- visual-studio - Visual Studio 2019 for Mac 缺少 Xamarin.Android
- java - 如何从 Java 8 中的 Instant 对象获取 yyyy-MM-dd。
- c++ - 缓冲的编码图像未保存
- tensorflow - gpu 设备指针中的值在没有任何 cuda 调用干预的情况下发生变化
- asp.net - Blazor 服务器应用程序 - OKTA 组未出现在声明中
- c# - 在 configuration.build 之前从 appsettings.json 读取值
- angular - 可以使用由装饰器“组件”在运行时创建的组件吗?