<c:if problem.

Thread Solved

Join Date: Oct 2007
Posts: 2
Reputation: woopsor is an unknown quantity at this point 
Solved Threads: 0
woopsor woopsor is offline Offline
Newbie Poster

<c:if problem.

 
0
  #1
Oct 8th, 2007
I am new to JSP and am having trouble with an if statement.

  1. <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'">
  2. <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/>
  3. </c:if>

The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax please?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 2
Reputation: woopsor is an unknown quantity at this point 
Solved Threads: 0
woopsor woopsor is offline Offline
Newbie Poster

Re: <c:if problem.

 
0
  #2
Oct 8th, 2007
I figured it out. Changed it to this.

  1. <c:set var="OrderMethod" value="#{authorizedProduct.product.product.orderMethod}"></c:set>
  2. <c:if test="${OrderMethod != null}">
  3. <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}" />
  4. </c:if>
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC