I'm having trouble with the boolean onSale in my bookcatalog.jsp.  I
see it is already in BookDetails.java.  I added it to books.jspx after
the price.  In bookcatalog.jsp I have:

<c:set var="onSale">
    <x:out select="$book/onsale"/>
</c:set>

<jsp:setProperty name="addedBook" property="onSale" value='${onsale}' /
>

    <c:set var="price">
      <x:out select="$book/price"/>
    </c:set>
    <c:set var="onsale">
        <x:out select="$book/onsale"/>
    </c:set>
    <c:choose>
        <c:when test="${onsale}">
            <strike><fmt:formatNumber value="${price}" type="currency"/
></strike>
        <font color="red"><fmt:formatNumber value="${price * .85}"
type="currency"/></font>
        </c:when>
        <c:otherwise>
            <fmt:formatNumber value="${price}" type="currency"/>
        </c:otherwise>
    </c:choose>

I have tried onSale and onsale.  and the results are that the sale
price boolean is always overlooked.

What should I do to try to resolve this problem?

Thanks

Sonja

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to