Accesing a List within A List Using JSTL

Hi,
I am trying to access a property of an object within a List Object which again is in a List object using JSTL.
List----List----Obj1----Property1 <--( I want to print this in a Table on a JSP)
I am unable to figure out how to do it using the <c:forEach> tag.
Thanks in advance,
Shardul.
Message was edited by:
shardul.bhatt

Hi,
Thanks for your response. Actually I wanted a single statement to do this. Its my mistake I should have put the question in a different manner.
Something like
<c:out value="${requestScope.OUTER_LIST.[FIRST_INSTANCE_OF_INNER_LIST].[OBJECT].[PROPERTY]}" ></c:out>The OuterList has many InnerLists and each InnerList has many Objects. The Property of the first Object in the InnerList is what I want to print as a 'Title' of a table.
For example: The Objects in the Inner List are UserObjects, where all the Users of a particular type are put together in an InnerList. I want to display the users of different types grouped together and the Table should have the 'User Type' as its title.
I could do it like this
<tr border="2" class="selectedrow">
<td><B><font color="#2d5c3d">User Type</font></B></td>
<td><strong><font color="#2d5c3d">
<!---I want to remove this with a single line of code-->
<c:forEach items="${usersByType}"   var="user" begin="0" end="0">
      <c:out value="${user.userType}"></c:out>
</c:forEach>
<!---I want to remove this with a single line of code-->
</font></strong></td>But I think there has to be a better way to do it.
BR,
Shardul

Similar Messages

  • MIDlet List within a list?

    How do you make a list within a list? Can anyone give me an example on how to do it?

    cherie wrote:
    How do you make a list within a list? Can anyone give me an example on how to do it?are you trying to create a tree ?
    _list 1
    | |_list1_1
    | |_list1_2
    |_list2
    |_list3
    something like this?

  • List within a List

    What is the most efficient way of constructing a dataTable that has a List? For Example I need to construct this table (Order List):
    Order #   Products   Quantity  Status
    12321     prod1         10     open
              prod2         5        
              prod3         1          
    45681     prodA         7       closed
              prodB         11 Basically the orderList returns a List of Orders. Each Order has a List of Products that has to be shown. I could use a dataTable for each Products and Quantity column but I would would like to know a much cleaner/faster way
    Thank you
    Steve

    You can just nest datatables.
    Also see http://balusc.xs4all.nl/srv/dev-jep-dat.html � http://balusc.xs4all.nl/srv/dev-jep-dat.html#NestingDatatables
    Basic example:
    Order.javapublic class Order {
        private Long id;
        private List<Product> products;
        private String status;
        // + getters + setters
    }Product.javapublic class Product {
        private String name;
        private Integer quantity;
        // + getters + setters
    }JSF<h:dataTable value="#{myBean.orders}" var="order">
        <h:column><h:outputText value="#{order.id}" /></h:column>
        <h:column>
            <h:dataTable value="#{order.products}" var="product">
                <h:column><h:outputText value="#{product.name}" /></h:column>
                <h:column><h:outputText value="#{product.quantity}" /></h:column>
            </h:dataTable>
        </h:column>
        <h:column><h:outputText value="#{order.status}" /></h:column>
    </h:dataTable>

  • How to process list within list in jsp

    Hi,
    I have to read values from list within the list in jsp. I got list of objects and I am reading the variables from it in jsp. for that I iterate through the list, read the variable from the object.
    I use
    <logic:iterate name="searchFormBean" property="policies" id="policiesList" indexId="index">
    and reading the variable like below.
    <html:hidden name="searchFormBean" property='<%= "partyId[" + index + "]" %>' />
    and I have method getPartyId(int index, String text) in searchFormBean class.
    now I have a problem that object has list variable which has to be read.
    I am not sure of how to pass both the index (index of object list and index of list within the object).
    I have method getIds(int index, int listIndex, String text)
    Please let me know how should I write code in jsp to call the above method.
    Thanks & Regards,
    Nasrin.N

    <%
    getPartyId(int index, String text);
    %>
    Nasree ..its quite confusin ur question...forget abt implementation..just tell us in detail what ur rqmt is..
    regards
    shanu

  • Retaining of values in JSP while using JSTL

    Dear All,
    I have an application using the struts framework, wherein I am facing a problem.
    Here goes the problem " In my JSP's I have multiselect, the JSTL tags works fine when all the server side validations are done. But I get a problem when an error(server side validation error) occurs, I have to retain all the multiple values selected in the Multiselect box.
    Can anyone suggest me best way to retain the multiple values.
    E.g. My multiselect populates 5 values
    A
    B
    C
    D
    E
    As a end user I select "B, C,E", and a server side validation error occurs I have to keep the values "B, C, E" selected in the above list of 5 values using JSTL
    Thanking you in anticipation.
    regards,
    Mohan.

    Dear Friend,
    The control I am placing(multi select) has the data type in the form as String[],
    The validation error(server side) I was talking about is: I have 5 fields in JSP, in one of the 5 fields I have a title, which is unique in the database, if the end user enters an already existing title, then all the values previously (entered, selected) for rest of the controls should be retained and an error message from application resources is populated about the title duplication.
    Here I will show the entered values in text box and also the multi-selects, so using JSTL, I want a way out to retain the previously selected values....
    In my JSP for the control I say <input type="select" property="propertyname" multiple="true">
    of struts...
    Thank you
    Mohan.

  • How to use List within javaFX(*.fx) script?

    How to use java.util.List within javaFX(*.fx) script?
    The following is my code in Java
    PDBFileReader pdbreader = new PDBFileReader();
              pdbreader.setPath("/Path/To/PDBFiles/");
              pdbreader.setParseSecStruc(true);// parse the secondary structure information from PDB file
              pdbreader.setAlignSeqRes(true);  // align SEQRES and ATOM records
              pdbreader.setAutoFetch(true);    // fetch PDB files from web if they can't be found locally
              try{
                   Structure struc = pdbreader.getStructureById(code);
                   System.out.println("The SEQRES and ATOM information is available via the chains:");
                   int modelnr = 0 ; // also is 0 if structure is an XRAY structure.
                   List<Chain> chains = struc.getChains(modelnr);
                   for (Chain cha:chains){
                        List<Group> agr = cha.getAtomGroups("amino");
                        List<Group> hgr = cha.getAtomGroups("hetatm");
                        List<Group> ngr = cha.getAtomGroups("nucleotide");
                        System.out.print("chain: >"+cha.getName()+"<");
                        System.out.print(" length SEQRES: " +cha.getLengthSeqRes());
                        System.out.print(" length ATOM: " +cha.getAtomLength());
                        System.out.print(" aminos: " +agr.size());
                        System.out.print(" hetatms: "+hgr.size());
                        System.out.println(" nucleotides: "+ngr.size()); 
              } catch (Exception e) {
                   e.printStackTrace();
              }The following is my code in JavaFX(getting errors)
    var loadbtn:SwingButton = SwingButton{
        text:"Load"
        action: function():Void{
            var pdbreader = new PDBFileReader();
            var structure = null;
            try{
                structure = pdbreader.getStructure(filepath.text);
                List<Chain> chains = structure.getChains(0);
                foreach (Chain cha in chains){
                        List < Group > agr = cha.getAtomGroups("amino");
                        List < Group > hgr = cha.getAtomGroups("hetatm");
                        List < Group > ngr = cha.getAtomGroups("nucleotide");
            } catch (e:IOException) {
                e.printStackTrace();
        };I'm using Netbeans 6.5 with JavaFX
    (PDBFileReader, Chain, Structure etc are classes from my own package, already added to the library folder under the project directory)
    Simply put, How to use List and Foreach in JavaFX?

    We can not use Java Generics syntax in JavaFX. But we can use Java Collection classes using the keyword 'as' for type-casting.
    e.g.
    import java.util.LinkedList;
    import java.util.List;
    import javafx.scene.shape.Rectangle;
    var outerlist : List = new LinkedList();
    var innerlist : List = new LinkedList();
    innerlist.add(Rectangle{
        width: 10 height:10});
    innerlist.add(Rectangle{
        width: 20 height:20});
    outerlist.add(innerlist);
    for (inner in outerlist) {
        var list : List = inner as List;
        for (element in list) {
            var rect : Rectangle = element as Rectangle;
            println("(width, height)=({rect.width}, {rect.height})");
    }

  • External USB not recognized on my iMac (intel) in Disk Utility, Finder as well as in Terminal diskutil list but is listed in System Profile, which includes the location ID of 0xfa400000 / 5.  Can the location ID be used to restore USB identity ?

    My 1TB Seagate external USB not recognized by my iMac (intel) in Disk Utility, nor in Finder as well as in Terminal "diskutil list" but it is listed within the System Profile, which includes the location ID of 0xfa400000 / 5.  Can the location ID be used to restore the identity of my external USB ?

    Hello JNotorious,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    USB and FireWire Quick Assist
    http://support.apple.com/kb/ht1151
    Have a nice day,
    Mario

  • How do I add rows to a drop down list. I am using Excel 2008

    I am trying to incorporate added rows into a drop down list and am having no luch.  Any suggestions?

    Any of this help?
    Enter the items for your drop-down list into a list on the worksheet, one item per cell. In this example, I'll assume that the month names start in cell E1 and extend down to E12, but they can be in any out-of-the-way location on the worksheet. In Excel terminology, a rectangular group of cells (such as E1 to E12) is called a range.
    Select the cell that will contain the drop-down list. If you'd like more than one cell to display the same list, just select them all now rather than setting them up one at a time. (Click and drag to select a range; hold down Ctrl while you click to select non-adjacent cells.)
    Choose Data, Validation to display the Data Validation dialog box.
    Click the Settings tab.
    In the Allow field, select List.
    In the Source field, specify the range that contains the list items. In this example, the items are in cells E1 to E12, so type =E1:E12 into the field.
    http://support.microsoft.com/kb/141573
    NOTE   You cannot create a list in a shared workbook. You must remove the workbook from shared use first if you want to create a list.
    Every column in the list has AutoFilter enabled by default in the header row. AutoFilter allows you to filter or sort your data quickly.
    The dark blue border around the list clearly distinguishes the range of cells that makes up your list.
    The row that contains an asterisk is called the insert row. Typing information in this row will automatically add data to the list and expand the border of the list.
    A total row can be added to your list. When you click a cell within the total row, a drop-down list of aggregate functions becomes available.
    You can modify the size of your list by dragging the resize handle found on the bottom corner of the list border.
    http://office.microsoft.com/en-us/excel-help/about-excel-lists-HP001004433.aspx

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • Select list within interactive report.

    Hello y'all,
    I have a need to develop an interactive report and am lost in how to proceed. I am asking for your help. The report requirements are as such:
    - There are 3 types of records that will be in the report
    - The is a checkbox to associate the records to a particular event.
    - If the record is of a certain value, 3 of the columns in that record have to show as select lists.
    - The records with the other 2 values should not have the select lists, just show a null in those columns.
    - The checkbox must be checked for the select lists to appear.
    - The select lists are based on a list of values. The values are populated with an existing common function used in many of the application pages.
    I am having no success in trying to get the select lists in the report. Has anyone developed an interactive report that uses select lists within the report? Is this even possible?
    I am using application Express 3.2.0.00.27. Any help that you can give is greatly appreciated. Thank you so much!
    *** Got it. It has to be a tabular report with updateable columns. ***
    Edited by: seashell on Sep 13, 2010 5:22 AM
    Edited by: seashell on Sep 13, 2010 7:07 AM

    Hi,
    I am not sure if the "equal to" condition applies to a DOM object... after all, a DOM object can be anything (any HTML element) not only a field.
    Try using a javascript expression instead, like this:
    $v('P6_IR_SELECT_LIST')=='Delete'UPDATE: Sorry, I just tested and "equal to" condition works for DOM objects... should have tested before posting!
    Luis
    Edited by: Luis Cabral on Feb 29, 2012 4:45 PM

  • TestStand crashes when a SequenceCa​ll step that counts failures within a list

    I have TestStand 4.0 and TestStand 4.1 installed on my system, as does everyone else in my department.  I am the only one with a 64bit machine and cannot execute a sequence in 4.0 that I can execute in 4.1.  Everyone else can execute the sequence in both.  The sequence generates a report and TestStand crashes when the sequence reaches a step that performs a sequence call which counts the number of failures within a list (array). 
    We are fresh out of ideas.  Any suggestions would be greatly appreciated.  If more information is needed, please ask.
    Thanks!

    When you say '64-bit machine' do you mean 64-bit Operating System?
    If so, which 64-bit operating system are you using, XP x64 or Vista x64? 
    TestStand 4.0.1f1 is only supported on Windows 2000 and XP x86.
    TestStand 4.1 is supported on Windows 2000, XP x86, Vista x86, and Vista x64.
    If you are trying to use XP x64, we have not tested it, and it is not guaranteed to work in all cases.  If you are using Vista x64, then it is expected that TestStand 4.1 will work, but TestStand 4.0.1f1 was never tested with any version of Vista, and so may not work.
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • Sub Select list within the Select List!!

    Hi All,
    I want one solution, i want to have a sub select list within the select list, i mean i want to have a dropdown shown when we point a cursor on any of the Value of
    the select list. Sub select list for that value of the select list.
    Hope you all got it,Please Reply me if anybody has the solution, I am using APEX version 3.0.1.00.07
    Thanks

    Hm,
    Service Unavailable
    The proxy is currently unable to handle the request due to a (possibly) temporary error. Extended error information is:
    * Failed to forward the request to the web server at apps.oraclecorp.com:80. This may be due to a firewall configuration error or a DNS failure.
    If this situation persists, please contact your security gateway administrator.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Display construction type on the structure list within the work order

    I have a work order written against an equipment which has a construction type assigned to it.  When using the structure list from the components tab of the work order, the construction type does not display under the equipment in the list.  If I run the same structure list from transaction IH03, the construction type does display under the equipment.  How can I add the construction type to display on the structure list within the work order?  We are on release 4.7
    Thanks,
    Terry Gaskin

    Thanks PeteA, we know we can do that, but we are looking to get it consistent with IH03, where the construction type shows without being added to the BOM.  The construction type is listed immediately below the equipment in IH03.
    Thanks

  • Poor performance when dragging item within a list loaded with images - Flex 4

    Hi,
    I have a custom built List component that is using a TileLayout. I am using a custom itemRenderer to load images into this list from our server (in this test, 44 images rae loaded). I have enabled dragEnabled and dragMove so that I can move items around within the list. The problem comes when I start dragging an item. The dragging operation is very slow and clunky.
    When I move the mouse to drag the item, the dropIndicator does not get refreshed for a few seconds and the movement feels like my PC is lagging pretty badly. I've also noticed that during this time my CPU usage is spiking up to around 25-40%. The funny part is I can scroll the list just fine without any lag at all, but the minute I drag the application starts to lag really bad. I do have some custom dragOver code that I used to override the dragOverHandler of the list control, but the problem persists even if I take that code out. I've tried with useVirtualLayout set to both true and false and neither setting made a difference. 
    Any ideas as to what could be causing the poor performance and/or how I can go abouts fixing it?
    Thanks a lot in advance!

    Ahh, good call about the Performance profiler. I'm pretty new to the profiling thing with Flex (haven't used Builder Pro before
    the Flex 4 beta) so please forgive me
    I found some interesting things running the performance profiler but I'm not sure I understand what to make of it all. I cleared the Performance Profile data when right before I loaded the images into the list. I then moved some images around and then captured the Profiling Data (If I understand Adobe correctly, this is the correct way to capture performance information for a set of actions).
    What I found is there is a [mouseEvent] item that took 3101ms with 1 "Calls" (!!!!). When I drill down into that item to see the Method Statistics, I actually see three different Callees and no callers. The sum of the time it took the Callees to execute does not even come close to adding up to the 3101 ms (about 40ms). I'm not sure what I can make of those numbers, or if they are even meaningful. Any insight into these?
    The only other items that stand out to me are [pre-render] which has 863ms (Cumulative Time) / 639ms (Self Time), [enterFrameEvent] which has 746ms / 6ms (?!), and [tincan] (what the heck is tincan?) which has times of 521ms for both Cumulative and Self.
    Can anyone offer some insight into these numbers and maybe make some more suggestions for me? I apologize for my ignorance on these numbers - as I said, I'm new to the whole Flex profiling thing.
    Many thanks in advance!
    Edit: I just did another check, this time profiling only from the start of my drag to the end of my drop, and I still see [mouseEvent] taking almost 1000ms of Cumulative Time. However, when I double click that item to see the Method Statistics, no Callers or Callees are listed. What's causing this [mouseEvent] and how come it's taking so long?

  • I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I was downloading podcast video in my itouch using wifi, but suddenly my wifi got disconnected and now there is a link in my podcast list which on opening uses wifi to play that video. I want to delete that link. Right to left swapping is not working.

    I bet this is too late but...
    Are you trying to print through the airport express wirelessly or the built in wireless of the lexmark? If you want to use the airport express, there is no need to mess with the wireless printing on the lexmark at all. The airport express will be easy to set up, all the wireless setups through the printers are a pain.

Maybe you are looking for

  • Passing multiline element to workflow container ? how do i ?

    Hello Folks, I need to pass an internal table to the workflow container...In this container i had already created an Multiline element which the right table type assigned.. I need to call this Workflow using FM SAP_WAPI_START_WORKFLOW.... Eg: CALL FU

  • Card for music storage

    I am a new BB user, still learning the capabilities of the device.  The other day I ran into another BB user who was playing stored music.  I asked how she did this and showed me a card installed above the battery.  She said her phone came with this.

  • Report Footer overlapping Last four records in the report body.

    <p>Hi All,</p><p>In all of my reports have more than 20 Pages. All of my reports are Webintellegence format. these reports we deployed in Java Appplication. Java Application is in Tiles Frame Work Architecture. </p><p><strong>Here Problem is all of m

  • Finally MS-8348A's new firmare is here, but what does it do?

    The 150D MS-8348A's new firmare is online, but what does it do? Are we suppose to try it and see by ourselves? Does it allows new cd's capacity, better compatibility? Snoopo

  • Problems after an "erase and install"

    Hi, I recently had problems with my mac and i needed to do an "erase and install" with the original Mac OS cd. Perhaps, before loosing all of my data, i saved it on an other macbook. When i re-install my Mac Os software and all of my data (pictures i