【问题标题】:How do I hide and unhide a link on a jsp page based on the value of another label on the same jsp using beans?如何使用 bean 根据同一 jsp 上另一个标签的值隐藏和取消隐藏 jsp 页面上的链接?
【发布时间】:2015-07-30 09:42:51
【问题描述】:

如何根据同一jsp上另一个标签的值隐藏和取消隐藏jsp页面上的链接?

【问题讨论】:

  • 使用 Jquery 显示和隐藏 HTML DOM。
  • 您能否向我们展示您用于创建该链接的代码?
  • 你的代码在哪里?你试过什么?您使用了哪些技术?

标签: java jsp jsp-tags


【解决方案1】:

您仍然可以将表达式语言与 bean 一起使用。

<label for="...">${myBean.label}</label>

<c:if test="${myBean.label eq ''}">
    ...
</c:if>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-28
    • 1970-01-01
    相关资源
    最近更新 更多