•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 402,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,718 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 4904 | Replies: 1 | Solved
![]() |
| |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I am new to JSP and am having trouble with an if statement.
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?
jsp Syntax (Toggle Plain Text)
<c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </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?
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I figured it out. Changed it to this.
JSP Syntax (Toggle Plain Text)
<c:set var="OrderMethod" value="#{authorizedProduct.product.product.orderMethod}"></c:set> <c:if test="${OrderMethod != null}"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}" /> </c:if>
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Installing Windows 98 On VMware. Floppy problem (Windows 9x / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP / 2003)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Gadgets and Gizmos)
- Connection Problems (Networking Hardware Configuration)
- Encoding (Unicode) problem in IE 6.0 (Web Browsers)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
- Javascript/HTML problem!!! (JavaScript / DHTML / AJAX)
- Problem with Windows Update and WinXP (Web Browsers)
Other Threads in the JSP Forum
- Previous Thread: jsp and mysql
- Next Thread: online exam source code in jsp


Hybrid Mode