Help the world stop coronavirus! Stay home!

Prev Next

JSP / JSP interview questions

How do I test if a string contains the given value in EL?

Use the fn:contains() or fn:containsIgnoreCase() function.

<c:forEach items="${cartItems}" var="eachItem">
    <c:if test="${not fn:containsIgnoreCase(eachItem, 'egg')}">
        <p> ${eachItem} doesn't contain 'Egg'</p>

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions