Solved

Display in jsp structs using boolean value

Posted on 2007-11-15
1
987 Views
Last Modified: 2013-11-24
My requirement is to display some message based on the bollean value ( which is in in map ) in jsp
 I am working on struts.
can anybody please provide me the code.
0
Comment
Question by:toharikr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
boonleng earned 500 total points
ID: 20295746

// Using jstl tag
<c:forEach var="row" items="${myActionForm.myMap}">
    <c:if test="${row.value}"><c:out value="${row.key}"/> is true.</c:if>
</c:forEach>
 
// Using struts tag
<logic:iterate id="row" name="myActionForm" property="myMap">
    <logic:equal name="row" property="value" value="true">
        <bean:write name="row" property="key"/> is true.
    </logic:equal>
</logic:iterate>

Open in new window

0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven java path setting 5 66
more than one jdk and one jre 1 59
null output 3 55
Eclipse for Java EE development 2 67
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question