Help with c:forEach Tag (it is driving me insane)

I keep getting this error (Don't know how to iterate over supplied "items" in <forEach>) whenever i run my jsp page.
JSP Code:
<c:set var="page_action" value="${sessionScope.httpData.find_Fix}" />
                    <c:set var="LoadedUpdates" value="${sessionScope.hotFix.fixDetails}" />
                    <c:if test="${page_action != null}" >
                        <div class="hot-fix">
                            <table>
                                <c:forEach items="${LoadedUpdates}" var="updates" varStatus="status">
                                    <tr>
                                    <td> ${status.count} </td><td><c:out  value="${updates}" /></td>
                                    </tr>
                                </c:forEach>
                           </table>
                        </div>
                    </c:if>
JAVA Code (Backend Bean):
import com.sun.java.util.collections.ArrayList;
public class HotFixLoader {  
    ArrayList fixdetails = new ArrayList();
     public HotFixLoader(){
     for (int i = 0; i < 10; i++){       
            fixdetails.add("<a href=\"#\">xxxxxx</a>, xx/xx/xxxx, xyxyxyxyxy");
    public ArrayList getFixDetails(){      
        return fixdetails;
}

Double post: http://forum.java.sun.com/thread.jspa?threadID=720677&messageID=4158495#4158495

Similar Messages

  • Please help with margins and tags

    Hope someone can help with a sudden problem I’m having with tags and margins. Out of the blue it seems Dreamweaver wants to create a margin between two <div’s,> but only if a tag is applied to the text, such as <p><h1><h2> etc.  Here’s an example; Say at the top of the page you have a <div> named “header,” below it there’s a <div> named “content.” So far no problem, but as soon as I put text in the “content” <div> and give the text a tag, the “content <div> drops roughly 25 – 30px below the “header” <div> leaving a margin.  To make it even stranger; If I were to insert an image into the “content” <div> first, then the text, it behaves as normal.  I’m just baffled; if anyone has an answer it would be greatly appreciated.

    That did it, thank you so much!
    It's still just a bit of a mystery why it suddenly started doing this, guess I’ll just have to strip that code in manually from now on, unless you have the answer on how to have it default to a margin and padding of 0.
    Anyway, thank you for your help.

  • Using ViewObject with a foreach tag in a jsp

    Hi guys I have the following scenario:
    1- I call a certain .jsp page
    2- a controller class (extends servlet) is called, this class: takes a view object, executes it's query, forwards the result to the jsp page.
    3- jsp page has a foreach tag that iterates over the query result.
    My problem is that foreach tag only takes list or array in its "items" attribute.
    Now is there a way to put the view object result in an array/list? in other words in my servlet what should I put in the request so that the foreach tag can iterate over the rows of the query. Thank you in advance for the reply.

    Thank you for the reply.
    But my application is not a web based one.
    I am developing a framework (as swf) in which some other swf files (target files) are played as movie clip. Since the framework swf should be considered as a general one, no direct linking to the other swfs preferred. I follow some (my own) rules to get things worked. For example, I need to show a simple movie cilp as the title in the framework. This movie clip will be different in different target swfs, and they will be stored inside the target swfs itself. I was thinking about giving them a unique id (eg. title_id) and after loading the target swfs, show their titles (movie clips) in one of the framework's empty movie clip (using attachMovie).
    Could please suggest me any idea to get things work?

  • Help with css3 rollover tag please

    Hey guys I'm stumped and need help with positioning some big picture buttons.
    Here is the link o the home page http://ceramic-planet2.businesscatalyst.com/
    As u can see I have four picture buttons using css3 roller but I want all four buttons next to each other
    2 buttons next to each other with the next 2 directly below .
    Now orgininally I used the dreamweaver rollover button and everything was inline so flowed across the page no problem. These are divs and I've tried to make 2 panels side by side among other hings but I'm not getting there so I thought one of u clever guys would have no problems telling me what to do.
    Please help I'm not getting the inline or absolute placement right
    Dave

    Hey Dave,
    You need to remove the margin from #mosaicbutton, #kitchenbutton
    and then add float : left; to #bathroombutton, #floorbutton, #mosaicbutton, #kitchenbutton,
    That'll get you buttons sitting the way you want them, you may need to play with the margins after that.
    Pat

  • ITunes keeps popping up fr no reason with nothing connected and it is driving me insane, any suggestions?

    iTunes keeps popping up for no reason with nothing connected and it is driving me insance, any suggestion?
    I have tried rebooting and this hasnt helped.

    vivianalozano wrote:
    I assume that a neighbour has an iphone that tries to sync to my itunes repeteadly making the window pop up every 5 minutes...
    That really is not likely since the device would have to have at one time been physically connected and synced to your computer, AND Wi-Fi sync enabled while connected to your library, AND they'd have to be on your Wi-Fi network.  Unless you have someone who did all this and lives within Wi-Fi range, and knows your network password, that's not what's happening.
    Do you have any auxillary software add-ons to iTunes (e.g. Last.fm scrobbler)?  Sometimes those get in the way of shutting iTunes down and it will re-open unless you shut the other software down first.

  • Help with JSP:GetProperty Tag

    Howdy all,
    I have a
    <jsp:getProperty name='input' property='code01'/>
    tag and would like to be able to put a variable in the property field so that I can increment from code01 to code02 to code 03 by concatenating strings
    Is this possible?

    Thanks for your input on the forum, but I tried with no sucess to put it into action:
    <% String colname="code02"; %>
    <jsp:getProperty name='Input' property='<%=colname%>' />
    Produced this:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'
         at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:616)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Any Help you can give would be greatly appreciated, what I need to do is cycle through code01, code02....code15
    and use the string to do it, but use a counter integer to create the string, ie..'code0' + i and then use the sting to access
    on of the member properties in the been...(Code01, Code02) ertc.

  • Help with the custom tag

    Hi
    i want to make a custom tag encapsulating certain functionalities of existing tags in one tag namely tomahawk dataPanel and html facets.
    Where can I get the source for html jsf tags so that I can look into it and modify.
    Thanks

    Originally posted by: mbuc.edp-progetti.it
    Would you like to know a fine workaround?
    If you have in your jsps a reference to the tld like this:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    make a C:\WEB-INF\ directory on your PC and copy in there your tlds
    (C:\WEB-INF\struts-html.tld). The same for linux: /WEB-INF/struts-html.tld.
    So you do not have to change anything in web.xml nor in the jsp pages!
    Bye,
    Marco.
    "marco" <[email protected]> ha scritto nel messaggio
    news:cfhrgj$bcj$[email protected]..
    > Davis,
    > thanks for the reply. I followed your suggestion and now I am able to see
    > the code assist working.
    > I am currently using the lomboz editor, but one thing that is missing in
    > lomboz and is present in the structured editor (and in Intellij Idea) is
    the
    > ability to see where a tag is opened and closed, also for html tags.
    Perhaps
    > to someone this should seem not so important, but for me it is very
    usefull!
    >
    > As a first impression, I can only make a lot compliments to both
    > contributions (ObjectWeb and IBM).
    >
    > Bye,
    > Marco.
    >
    >
    > "David Williams" <[email protected]> ha scritto nel messaggio
    > news:[email protected]..
    > >
    > > No, you're not missing anything. Its just with that version of code the
    > > "tld resolver" (that knows where to look for TLD's) is not correct. I
    > > haven't tried it with struts, but with a minor test I tried,
    > > I just made a copy of the TLD to put in the same folder as the JSP file.
    > > Then the editor (and content asssit), can find it and all should be ok.
    Of
    > > course, I'm not suggesting this for a long term solution, but just to
    see
    > > if it allows you to get a little further in evaluating overall.
    >
    >

  • Help with robots Metag tag...

    Hi,
    I have a page I do not want web robots to pick up on...a
    "secret" page, essentially so it will not come up on a search
    engine.
    See the code below. I know this gets inserted within the HEAD
    tags, but I'm not sure what I need to edit? For example, where it
    reads "This page..." -- what's that all about? Also, how about the
    ...dots...between title tags?
    I'd like to get this squared away once & for all.
    Can someone kindly answer my questions? I look forward to
    your responses/explanations.
    Many thanks! (code is pasted below)...
    <html>
    <head>
    <meta name="robots" content="noindex,nofollow">
    <meta name="description" content="This page ....">
    <title>...</title>
    </head>
    <body>

    This article may help:
    http://dreamweaverresources.com/seo/robottext.htm
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html
    > Hi,
    >
    > I have a page I do not want web robots to pick up on...a
    "secret" page,
    > essentially so it will not come up on a search engine.
    > See the code below. I know this gets inserted within the
    HEAD tags, but
    > I'm
    > not sure what I need to edit? For example, where it
    reads "This
    > page..." --
    > what's that all about? Also, how about the
    ...dots...between title tags?
    > I'd like to get this squared away once & for all.
    > Can someone kindly answer my questions? I look forward
    to your
    > responses/explanations.
    >
    > Many thanks! (code is pasted below)...
    >
    > <html>
    > <head>
    > <meta name="robots" content="noindex,nofollow">
    > <meta name="description" content="This page ....">
    > <title>...</title>
    > </head>
    > <body>
    > ...
    >
    >

  • Can someone help with an audio problem that is driving me crackers!!

    hi, i have seen lots of comments about windows sound issues, my problem is it sometimes says i have speakers installed and they are working (but have no sound) and other times (when i turn it back on) it says no device installed/not plugged in etc.... now i know from reading previous posts this is an issue for loads of people, my question really is, can i use speakers that connect via usb rather than 3.5mm jack, and does anyone think this will make any difference?  my dad has suggested fitting a new sound card? will that sort it out, have only had my pc for a week, and it is under warranty but i have to pay the postage to return it (not bought from a shop directly if that makes sense)  i have to date spent about 8 hours googling, reinstalling drivers, everything you could possibly think off and nothing has changed!!!! speakers work as have tried them in my DS and the front headphone jack is not working either   i have installed windows updates and read somewhere that might be an issue?  is there any point doing a system restore and if so how will that work, and will the photos i have uploaded still be saved if i restore to apoint before they were put on?  sorry but im not very technically minded!!
    please help me as im slowly going grey!!!  i have a pavilion p6203

    zoehicks
    I know you must be very frustrated with the sound issue. It sounds like you've done a lot of research and leg work to figure out what the problem is with little success.  I would not restore the system unless you have backup copies of anything you downloaded (just in case)  As I read....you've uninstalled drivers and rebooted to reinstall and downloaded updates to Win 7  Have you reviewed all the suggestions at the attached Link?  I can't explain why the headphones connection does not work but maybe go look at your main sound setup in control panel to see if there is an issue with the settings there?  Look to see if there is something going on inside the "Hardware and Sound" icon.  These are guesses as I can't understand as well why you've not hit on the appropriate solution. Let me know when you solve this issue what it was.  Regards
    I work for HP. When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!

  • Please Help with multiple video tag editing

    I have about 650 music videos that I would like to have show up under the music video tab in my ipod and would like to know if there are any apps out there thay will allow me to change all the videos to Music Videos so they all dont show as Movies under iTunes and my iPod without having to right click and get info than change to music video - I think this option not already being included in Itunes for iPod videos is extremely stupid - anyone who can help me out and shed some light on a faster way please feel free to tell me and If there is a way in itunes to do this please let me know as I cant seem to find one
    And all Apple care says is maybe in the future we will look into to implementing this feature or something like it if we see fit and makes sense as we like to make our software as user friendly as possible
    Thanx
    Black Ipod Video 60gb
      Windows XP Pro  

    bump this up
    As I think this is a very good question and it should deff be looked into I mean cmon this is crazy there is no good reason that you should have to edit them 1 by 1
    Black 80gb Gen 5.5 Video as of Today

  • Help with Section Div tag

      <!--MAIN CONTENT-->
                    <div id="main">
                     <!--LEFT COLUMN-->
                     <section id="left.col">dsdsfdsf</p></section>
                    </div>
    Here is where I can't change the width of my section div. I want a left colm and right colm but I cant change the width of the left.col section. Then I can float it left and add the right colmn.
    HTML:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>RH Wholesale Supply</title>
    <link href="styles.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <!--Wrapper-->
    <div id="wrapper">
                  <!--HEADER---->
                  <header id="header">
                  <!--LOGO-->
                  <img src="images/images/images/logo.png" width="166" height="74"  alt=""/>
                  <!--NAV-->
                  <nav id="nav">
                    <ul>
                    <li><a href="index.html" class="home">Home</a></li>
                    <li><a href="about.html">About</a></li>
                    <li><a href="#">Products</a></li>
                    <li><a href="#">Online Store</a></li>
                    <li><a href="#">Contact</a></li>
                    </ul>
                  </nav>
                  </header>
                  <!--BANNER-->
                  <div id="banner">
                  <img src="images/san_francisco_skyline699.jpg" width="1920" height="1080"  alt=""/> </div>
                      <!--MAIN CONTENT-->
                    <div id="main">
                     <!--LEFT COLUMN-->
                     <section id="left.col">dsdsfdsf</p></section>
                    </div>
                     <!--FOOTER-->             
      <footer id="footer">
      Copyright @ RH WHolesale 2013
      </footer>
    </div>
    </body>
    </html>
    CSS:
    @charset "UTF-8";
    /* CSS Document */
    body {
              margin-top: 0px;
              background-image: url(images/images/images/background..png);
              background-repeat: repeat-x;
              font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
              font-size: 13px;
    #wrapper {
              width: 1000px;
              margin-left: auto;
              margin-right: auto;
    /* HEADER & LOGO */
    #header {
              float: left;
    #header img {
              float: left;
              margin-top: 5px;
              margin-left: 25px;
    /* NAV BAR */
    #nav{
              list-style: none;
              padding-left: 80px;
              padding-top: 34px;
              width: 842px;
    #nav ul {
              font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
              text-align: center;
    #nav li{
              display: inline;
              padding-left: 25px;
              padding-right: 25px;
              color: #000000;
              font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
              font-weight: normal;
              font-size: 16px;
              padding-top: 10px;
              padding-bottom: 10px;
    #nav a{
              list-style-type: none;
              color: #FFFFFF;
              text-decoration: none;
    #nav a:hover  {
              text-decoration: overline;
              color: #FFFFFF;
              font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
              font-size: 16px;
    #nav .home , #nav .about{
    text-decoration: overline;
              color: #FFFFFF;
              font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
              font-size: 16px;
    /* MAIN IMAGE */
    #banner {
              float: left;
              overflow-x: hidden;
              overflow-y: hidden;
              margin-top: 25px;
              width: 1000px;
              height: 300px;
              box-shadow: 0px 0px 5px 1px #000;
    #banner img {
              margin-top: -318px;
              margin-left: -144px;
    /* MAIN BODY FOR CONTENT */
    #main {
              width: 950px;
              float: left;
              height: 251px;
              margin-left: 25px;
              margin-right: 25px;
              margin-top: 25px;
    h1 {
              font-size: 24px;
              font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
              color: #000000;
    #left.col {
    /* FOOTER */
    #footer {
              float: left;
              width: 1000px;
              text-align: center;
              font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
              font-size: 12px;
              margin-top: 25px;

    As recommended in the HTML5 specificiations, I use <aside> tags for sidebars. 
    <article> for content, <nav> for menus, <header> for headers, <footer> for footers, etc...
    See example below, view source in browser to see the code:
    http://alt-web.com/sandbox/HTML5-BasicLayout.html
    aside {
    margin: 0;
    padding: 0 1%;
    width: 33.33%;  /**3 equal width columns**/
    float: left;
    min-height: 330px;
    Nancy O.

  • Help with struts bean tag

    I populated my data in a hashtable and it contains key & the values are in an arraylist of treemap. How do I display data using struts bean tag? Thanks.

    if you have an arraylist of maps why do you need three iterates?
    <logic:iterate id="treeMap" name="navTable">  //navTable is your ArrayList treeMap will be each map
         <logic:iterate id="element" name="treeMap">  //element is each element as it iterates through treeMap
                         key = <bean:write name="element" property="key" filter="false"/>
                         value = <bean:write name="element" property="value" filter="false"/>
             </logic:iterate>
    </logic:iterate>unless of course I missed something and you really need three iterates.
    of course you need a getNavTable() method, though you probably already have that.

  • Pleae help ipod Nano wont update, error message driving me insane!!!!

    I have a 2nd gen ipod nano which after originally connecting to itunes was fine, has now decided to not update and not even allow me to restore. I keep getting message that I need to type in administration password. The other message says unknown error .
    If you can make sense of this please help.
    thanks
    Mac Mini   Mac OS X (10.3.9)  

    I am having a similiar problem... I could not transfer all of my songs due to an "error -69". Anyone know what this might mean?
    I'm very frustrated!!

  • How to numberformat when using sql:query alogn with c:forEach JSTL tags

    Is there anyway to format the numeric values returned from the database when using <sql:query> alogn with <c:forEach> tags
    Here is my jsp code
    <sql:query..../>
    <c:forEach var="row" items="${queryResults.rows}">
    <tr>
    <td><c:out value="${row.COL1}" /></td>
    <td><c:out value="${row.COL2}" /></td>
    </tr>
    </c:forEach>
    Col1 values are numeric without any formats Eg: 1000, 10000, 1000000 etc.
    how can i format them to 1,000 , 10,1000 , 100,000 etc

    It is polite to mention what your answer was. These posts are not just here for you to ask questions, but to be used as a resource for other people to find answers. Saying "I solved it" with no details helps noone.
    I presume you discovered the JSTL <fmt:formatNumber> tag?

  • JSTL forEach tag taking longer time than scriplets ???

    Hi Gurus,
    My STRUTS action class setsup a collection object [roughly 900 + records stored as java beans] to be displayed on my view [JSP]. The problem is, when I iterate over this collection in JSP using <c:forEach> tag, it takes around 4-5 minutes to build up the page.
    I coded the same looping logic through java scriplets embedded within JSP and the processing came down to 1 minute. Should I assume that <c:forEach> tag will have a processing overhead over plain java code in JSP?
    FYI, I checked the server generated SERVLET code under WORK directory of TOMCAT for this JSP with <c:forEach> tag and find lot of code being generated for this <c:forEach> tag implementation. Could it be that the processing of these generated code takes longer than plain java using scriplets?
    Please Help.
    Thanks,
    Karthik.
    <b>JSP using <c:forEach></b>
    <c:forEach var="refurb" items="${BOMDataForm.refurbSummary}" varStatus="loopStatus">                    
    <tr valign="top" bgcolor="#FFFFFF"> 
    <td>
    <div align="center"><span class="modulecontent"><c:out value="${refurb.configName}" /></span></div>
    </td>                     
    <td>
    <div align="center"><span class="modulecontent"><c:out value="${refurb.itemName}" /></span></div>
    </td>
    </tr>
    </c:forEach><b>JSP using embedded scriplets</b>
    <%
    BOMDataForm bomDataForm = (BOMDataForm) request.getAttribute("BOMDataForm");
    ArrayList arrayList = (ArrayList) bomDataForm.getRefurbSummary();
    int loop = arrayList.size();
    for (int i=0;i<loop;i++) {
    out.println("<tr valign=\"top\" bgcolor=\"#FFFFFF\">");
    out.println("<td>");
    out.println("<div align=\"center\"><span class=\"modulecontent\">");
    out.println(((RefurbSearchResult)arrayList.get(i)).getConfigName());
    out.println("</span></div>");
    out.println("</td>");
    out.println("<td>");
    out.println("<div align=\"center\"><span class=\"modulecontent\">");
    out.println(((RefurbSearchResult)arrayList.get(i)).getItemName());
    out.println("</span></div>");
    out.println("</td>");
    out.println("</tr>");                         
    %>

    Never looked at the speed issues. For me it has always been "fast enough"
    When displaying pages with 900 records on it the common approach is to split the result across multiple pages, so that loading doesn't get too long.
    The JSTL tags obviously introduce some overhead in extra procedure calling. As you found out by looking at the generated servlet code.
    Also the EL expressions have to be evaluated. using the reflection APIs. Its pretty certain that direct access to the object is faster.
    The forEach tag uses an iterator under the hood, where you are calling get(i) directly on an ArrayList.
    Any or all of these would be contributing. My guess would be the EL expression evaluation is probably the most overhead.
    One thing about your example I would like to see is how long it would take using an Iterator, rather than calling get(i) on the array elements. That would remove at least one of the differences.
    So in short, yes the JSTL is adding overhead to your page. I'm a bit surprised to hear it is so much though.
    Cheers,
    evnafets

Maybe you are looking for