Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
JSP
I need a JSTL equivalent for a Struts tag
Eric Sexton
Ranch Hand
Posts: 133
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Here's a
struts
tag I'm using:
<logic:notEmpty name="UserBean" property="addressLine2"> <c :-o ut value="${UserBean.addressLine2}"/><br> </logic:notEmpty>
As I'm trying to use JSTL more instead of depending on my Struts knowledge, I would like to know of an equivalent JSTL tag for the 'notEmpty' Struts tag. Thanks in advance.
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<c:if test="${not empty userBean.addressLine2}"> <c:out value="${userBean.addressLine2}"/><br/> </c:if>
Note that I changed UserBean to userBean to conform to conventional standards.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
using struts logic empty tag with request
Combinig 2 struts properties using AND Operator
Page load fails in <c:forEach tag
JSTL tag vs struts tags
Jstl tag equivalent to html:error tag in struts
More...