How to use HashMap in jsp

Today, the project encountered in the background needs to be passed in Map <String, List <Meeting>> dateGroup types of collection in the jsp to display the beginning thought a lot of trouble, resulting in online search a bit old so simple, He He:
 [b]<c:forEach items="${dateGroupMap}" var="dateGroup" >[/b]
             <tr>
                [b]<td width="20%" valign="bottom">${dateGroup.key[/b]}</td>
             </tr>
             [b]<c:forEach items="${dateGroup.value}" var="meeting">[/b]
                         <tr>
                   <td colspan="4"><hr></td>
                 </tr>
        
                 <tr height="20">
                    <td height="20">${meeting.startDate}
                                <c:if test="${not empty meeting.endDate}">
                                     --${meeting.endDate}
                                </c:if>
                                </td>
                    <td height="20">${meeting.title}</td>
                    <td height="20">${meeting.location}</td>
                    <td height="20">${meeting.content}</td>
                 </tr>          
                 </c:forEach>
     </c:forEach>
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of How to use HashMap in jsp

  • fck pages

    <% @ Page contentType = "text / html; charset = UTF-8"%> <% @ Include file = "/ commons / taglibs.jsp"%> <% @ Taglib uri = "/ FCKeditor" prefix = "FCK"%> <script language = "javascript

  • Msxml2.XMLHTTP version problem

    Projects with an import feature prototype.js of Ajax functionality to update the prompt, the code is very simple, do not have the framework of the background on a jsp to output Text, future use of timers and to update the page Ajax.request encountere ...

  • JS after ajax request return of the problem can not be implemented

    1: Send ajax request, in the onComplete, if back when the html contains a javascript, then these javascrip and will not be realized, it does not mean not to implement. This problem has troubled me for a long time, behind the hair and then put this kn ...

  • [Ask] Rest nested resources helper method

    (Novice, studying RestFul_Rails, rails 2.2.2) Nested resource definition is as follows: And in the project under the index view using the following code: Results page error: iterations_path undefined I would like to ask how are going on? The teaching ...

  • js page Jump implementation of a number of ways

    The first is: <script language="javascript" type="text/javascript"> window.location.href = "login.jsp? backurl =" + window.location.href; </ script> The second: <script language="javascript"> alert

  • RoR explained

    ROR is Ruby on Rails. Ruby is a well-known has been very good dynamic language It's dynamic language. Simple and easy. Dynamic languages are interpreted, but the performance may make a discount, but not absolute, because the application is complex, th

  • Some interview questions java

    The first is the company give you a chance to meet, it is necessary to know to meet from time to equal the interview, and have a lot of companies to see you at the first time will give you a ready point of doing something trivial, these questions, althoug

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries