Announcement Announcement Module
Collapse
No announcement yet.
JSTL conditional tag on command bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSTL conditional tag on command bean

    Hi,

    I am setting a form bean as a command.
    How can I evaluate the bean using JSTL
    Code:
    <c:if test="${what goes in here?}">
      <spring:nestedPath path="form"/>
        <spring:bind path="prop1">
          <c:out value="${status.value}"/>
        </spring:bind>
        <spring:bind path="prop2">
          <c:out value="${status.value}"/>
        </spring:bind>
      </spring:nestedPath>
    </c:if>
    I need to test in advanced if prop1 is null to omit the whole chunk.
    How is this done in Spring?

    Thanks,

    Mariano.

  • #2
    U cud try this out.

    <c:if test="${props1 ne null}">

    Comment

    Working...
    X