____风 2020-03-07 04:05 采纳率: 0%
浏览 137

如何在案例中隐藏bootstrap中的信息提示框,并在request返回结果时候显示?

我想将bootstrap中的信息提示框隐藏,并在报错时显示。

<div class="alert alert-warning alert-dismissible  "   role="alert">
          <button type="button" class="close"  data-dismiss="alert"  >
            <span>&times;</span></button>
           <strong>
               登录失败!
               ${requestScope.get("code_error")}
               ${requestScope.get("user_error")}
           </strong>
        </div>

我尝试用jstl 来判定条件后显示。

<c:if test="${requestScope.get('code_error')!=null} ">
<div>
上面代码
<\div>
<\c:if>

但是这个方式不行

哪位大神有简单粗暴的方法啊?

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 如何在list中给排名参数rank赋值
      • ¥20 要一个狼人杀游戏的代码(原创,不可抄袭),可以在DEV-C++上运行,如要等待就用for循环,要酷炫一些
      • ¥15 c4d有类似blender实例的功能么
      • ¥15 关于mysql的提问请大家解答
      • ¥30 将DICOM批量转化成PNG格式报错
      • ¥15 matlab lsqcurvefit拟合出现Function value and YDATA sizes are not equal.报错
      • ¥15 SpringBoot项目启动报错:No active profile set, falling back to default profiles:default,如何解决?
      • ¥15 部署confluence设置数据库这个步骤时,提示必须配置utf8 作为默认字符集
      • ¥15 如何脱离Photoshop实现ps脚本的渲染
      • ¥15 丙类高频放大器匹配网络