Printing nested collections

I have a struts application and trying to display a nested collection. For example, I have an arraylist of Persons object which in turn has a collection of Accounts object. Whats the syntax for iterating through the nested collection using the tags like
<logic:iterate id="item" name="myList" scope="request" >
<bean:write name="item" property="firstName"/>
* How do I iterate through the nested collection of Accounts here
</logic:terate>
I want to avoid writing scriplets for the same.
Thanks

Collection is not folder it is just the file that is created in the bridge preferences to ease out the navigation for the user.
Go to C:\Users\<user name>\AppData\Roaming\Adobe\Bridge CS5\Collections
you will find the filelist files ther with the name of your collection, if you open those file in the wordpard you will see the path of the files included in the collection.
hence I dont think the nested collection could be created becuase we cannot refer the filelist file in another filelist file.

Similar Messages

  • Generic Dump Nested Collection Procedure?

    Greetings,
    Anyone have a proc which when passed a (possibly deeply) nested collection will dump a pretty-printed representation via dbms_output?
    I know this is a mostly just a typing exercise using recursion, but
    1. my PL/SQL skills apparently aren't up to the task
    2. I don't see any kind of get_type() function for the dump proc to use to decide how to loop through sub-collections
    so I'd like to see how the experts do it.
    Am using 10g.
    Thanks,
    --jim
    example:
    DECLARE
      TYPE numset_t IS TABLE OF NUMBER;
      TYPE numset_t_aa IS TABLE OF numset_t INDEX BY VARCHAR2(16);
      TYPE numset_t_aa_v IS VARRAY(2) OF numset_t_aa;
      n_aa numset_t_aa;
      n_t_aa_v numset_t_aa_v;
    BEGIN
      n_aa('tens') := numset_t(10,11,12);
      n_aa('ones') := numset_t(1,2,3);
      n_t_aa_v(1) := n_aa;
      n_aa.DELETE('ones');
      SELECT * BULK COLLECT INTO n_aa('hundreds') FROM table(numset_t(103,102,101));
      n_t_aa_v(2) := n_aa;
      dbms_output('dumping n_t_aa_v:');
      dump_collection(n_t_aa_v);
    END;expected output:
    dumping dumping n_t_aa_v:
    1:
      tens:
        1: 10
        2: 11
        3: 12
      ones:
        1: 1
        2: 2
        3: 3
    2:
      tens:
        1: 10
        2: 11
        3: 12
      hundreds:
        1: 103
        2: 102
        3: 101

    Hi,
    Why are you using collections in the first place?
    If the sole purpose here is to generate XML, then you don't need collection at all, just query your base tables with SQL/XML functions.
    If these collections are part of a larger process (besides generating XML), then you'll need to use at least SQL types instead of local PL/SQL types if you want to efficiently generate XML out of them.
    For example, using the XMLType constructor over the topmost object : {message:id=10012696}

  • XSU: Nested Collections?

    Does anyone know of a way to get around Oracle's limitation on nested collections?
    I have been using XSU to present XML to our Java application layer using objects and object views. Casting multisets works fine for repeating elements as long as the elements themselves don't contain repeating elements. I have been able to get around this with nested cursors, but I am not sure that XSU was designed to work this way. I get a nasty error if any of the cursors return an empty set.
    Example:
    SELECT
    company_name,
    CURSOR(SELECT
    dept_name,
    CURSOR(SELECT
    group_name
    FROM group_table g
    WHERE g.dept_id = d.dept_id) AS "GROUPS"
    FROM
    dept_table d
    WHERE
    d.company_id = c.company_id) AS "DEPARTMENTS"
    FROM company_table c
    If any of the above cursors returns an empty set then I get the following error:
    oracle.xml.sql.OracleXMLSQLException: Closed Statement: oracle.jdbc.oci8.OCIDBStatement@18f375
    Anyone gotten around this another way?

    Hi Christopher,
    I posted a similar question before. I even don't know how to create such a table to store XML data.
    Like your example
    <company>
    <dept>
    <group>
    <emp>
    </emp>
    </group>
    <group>
    </group>
    </dept>
    <dept>
    </dept>
    </company>
    Do you know how to create a table to store this kind of xml data with several hierarchical levels?
    null

  • Nested Collections In Bridge?

    Is it possible to create nested collections in Bridge? I've looked in the help file, but can't find any mention. Don't know if I'm missing it or it just can't be done.
    Thanks,
    Chuck

    Collection is not folder it is just the file that is created in the bridge preferences to ease out the navigation for the user.
    Go to C:\Users\<user name>\AppData\Roaming\Adobe\Bridge CS5\Collections
    you will find the filelist files ther with the name of your collection, if you open those file in the wordpard you will see the path of the files included in the collection.
    hence I dont think the nested collection could be created becuase we cannot refer the filelist file in another filelist file.

  • Locking objects in nested collections

    Hi,
    I am looking at having a data store in memory which will be made up of nested collections e.g. a hashmap whose values are hashmaps. This data store will be accessed by multiple threads and to avoid threading issues on updates I realize I have to implement some form of locking. However I don't want to coarse grain lock the data store for all accesses when updating and I would prefer to lock on a more finer grained level.
    My question is this, is it possible to place a lock on an object in a collection or those the entire collection have to be locked e.g. given a hashmap within a hashmap is it possible to lock the inner hashmap and not the outer.
    regards
    Noel

    I don't think there could be any issue. Get the object from the hash map and lock it. But the Object should have synchronized methods to handle multiple threads, So that when multiple threads get reference to the same object from the hash map they get a synchronized access to the data or logic in the Object.

  • How to migrate nested collections?

    In our SCCM 2007 environment we have dozens of nested collections, some are 4 or 5 collections deep too.   How do you migrate that over to CM2012?   In a lab environment I tried to migrate the collection.
    TestCollection\One Deep\Two Deep\Three Deep
    Each of the 4 collection had a machine inside of it. the migration wizard worked but I don't see my collections in the CM2012 console.
    mqh7

    The Collections should be migrated, ususally it's a refresh of the console that is required to see the new folders and Collections. One thing you can do to verify the migration is checking the "objects in job" status. It will provide you with information
    about the success/failure of the migration. You can also check the migmctl.log file for detailed information about the process.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • UIX DataControl : Nested Collection Help Please

    Hello all,
    I am developing an app using the ff. evironment:
    IDE: JDeveloper 9052
    UI: ADF UIX
    Core: EJB
    1. I have a Session Bean that returns a collection of a POJO containing 2 POJOs and a collection of another POJO.
    2. I created a DataControl for the Session bean, set the bean class (in the XML datacontrol) as well as the Collection type for the other property. ?I am wondering how to set the bean property for the collection elements?.
    3. I then dragged the return for each of the POJOs and collection contained in the collection onto my UIX page as a read-only table. The return values for POJOs in the collection were rendered but the return values for the nested collection is not, I can only see a table with empty rows and columns .
    This is the collection class:
    public class NestedCollection {
    public nestedCollection(){
    private Pojo1 pojo1;
    private Pojo2 pojo2;
    private Collection nestedOne;
    //...accessor methods
    What is the workaround for this?

    Found it. I did not recompile. gee

  • [svn:bz-4.0.0_fixes] 20615: fixing the regression failure caused by the nest collection level fix, an actionscript type without remote alias will resolved as " className", we should filter out the special case

    Revision: 20615
    Revision: 20615
    Author:   [email protected]
    Date:     2011-03-04 12:11:09 -0800 (Fri, 04 Mar 2011)
    Log Message:
    fixing the regression failure caused by the nest collection level fix, an actionscript type without remote alias will resolved as ">className", we should filter out the special case
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • [svn:bz-4.0.0_fixes] 20586: backporting nest object level fix and nest collection level fix from blazeds trunk to 4 .0.0.fixes branch

    Revision: 20586
    Revision: 20586
    Author:   [email protected]
    Date:     2011-03-03 13:44:51 -0800 (Thu, 03 Mar 2011)
    Log Message:
    backporting nest object level fix and nest collection level fix from blazeds trunk to 4.0.0.fixes branch
    checkintests pass
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

    Revision: 20586
    Revision: 20586
    Author:   [email protected]
    Date:     2011-03-03 13:44:51 -0800 (Thu, 03 Mar 2011)
    Log Message:
    backporting nest object level fix and nest collection level fix from blazeds trunk to 4.0.0.fixes branch
    checkintests pass
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Output.java
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.java

  • Print Data Collection

    I am looking for a print data collection tool similar to PrintSolv or FleetPrint for PC environments. The target environment is 100% Apple computers (Servers, desktops & Laptops) and primarily HP & Epson printers. We could introduce a PC to the environment to perform the print data collection on network printers but neither PrintSolv or FleetPrint have a Mac agent to collect data from direct attached printers.
    Thank you for your help.

    Look into PrintCapture. I managed it at a client a few years ago, so don't know how well it works with Intel/10.5, but it worked pretty well on Tiger/PPC - the client was able to collate print numbers and bill their clients from the information.
    Matt

  • Exported nested collection only saving schema, not data?

    Robin proposed an answer of exporting multiple collections into one:
    http://social.technet.microsoft.com/Forums/en-US/3c55b873-a0c7-4cc8-9bab-eaf809f62ab0/exporting-data?forum=projectsiena
    It seems to work as long as you immediately import - this is because the collection is still in memory.  If you exit the app (or clear the collection), then only the schema can be loaded because the data itself isn't saved.
    When I look into the .zip file, I see that the schema is being written but no underlying data.
    Perhaps I'm doing something wrong and that's why I'm only getting the schema?
    I would be happy to share the project I've been working on if that would be helpful.
    Thanks!
    Thor

    thorwm,
       I was initially experiencing the same issue, but it turns out I was just confused (again).   I was building the nested collection during the OnSelect event for the Export control.   Apparently, the OnSelect event happens
    AFTER the Export control performs the export.   This can be seen by simply doing the export twice.  
       I have to look at a better way to perform the nested collection process.   Hopefully this is the same issue you are experiencing.
    -Bruton

  • GR print out- collective

    How do i take GR print out in a continuous pages? currently i am able to take line itm by line item only which is cumbersome as my GR docuement has 12 line items  I do not want 12 documents to be printed instead it should  come in 1 or 2 pages like a normal Po print out.
    regards
    samuel mendis

    Hi,
    While doing MIGO, choose 'Collective slip' at Printing tab.
    This will solve your problem.
    regards

  • Printing the Collective Stock/Requirements List

    Hey All,
    I'm trying to print out the collective stock/requirements list via the menu path "System -> List -> Save -> Local File" but it is shaded out and i cannot do this, just like SD variants are needed to be maintained in own data for the report VA05 so that layouts can be saved, do we also need some such varient maintained in own data to access this option ?
    Best Regards.

    Dear Danish,
    After executing the Stock/Requirements List in MD04,in the top menu List -
    > variable print --->From
    here you can download into a spread sheet or as a local file or as a word processing.
    Or else you can print from here.
    Now come back with your further queries.
    Dear Vivek, MDLD is to print out the MRP list (which is a static one and stock/requirements list is a
    dynamic one).
    Regards
    Mangalraj.S

  • Printing a Collection in N columns

    I am trying to write a class that takes a Collection of Objects and prints them in a specified number of columns. However, it never works. All that ever prints is a blank page. Here's my code:
    import java.awt.print.*;
    import java.util.*;
    import java.awt.*;
    public class PrintList implements Printable{
      private Vector list;
      private int index=0,col;
      public PrintList(Collection v,int c){
        list=new Vector(v);
        col=c;
      public int print(Graphics g, PageFormat pf, int pi)throws PrinterException{
        Graphics2D g2=(Graphics2D)g;  // Calculate graphics dimensions
        int height=g2.getFontMetrics().getHeight();
        int width=(int)pf.getImageableWidth();
        double lines=Math.floor(pf.getImageableHeight()/height);
        double pages=Math.ceil(list.size()/lines/col);
        if(pi>=pages){
          index=0;
          return Printable.NO_SUCH_PAGE;
        g2.translate(pf.getImageableX(),pf.getImageableY());
        for(int i=1;i<=lines && index<list.size();i++){
          for(int j=0;j<col && index<list.size();j++){
            String text=list.get(index).toString();
            g2.drawString(text,j*width/col,i*height);
            if(j==col-1)  text+='\n';       // Format text to display what
            else          text+='\t';       // should be printed
            System.out.print(text);
            index++;
        return Printable.PAGE_EXISTS;
      public static void main(String[] args){  // args[0] = # of items in test list
        try{                                   // args[1] = # of columns
          int size=Integer.parseInt(args[0]);
          int cols=Integer.parseInt(args[1]);
          Vector list=new Vector();
          for(int i=0;i<size;i++)
            list.add(new Integer(i));
          PrintList plist=new PrintList(list,cols);
          PrinterJob printer=PrinterJob.getPrinterJob();
          printer.setPrintable(plist);
          printer.print();
        }catch(Exception e){
          e.printStackTrace();
    }I'm using JDK 1.4.1_01 if that's important. Any help would be appreciated.
    Ben

    Your code is ok except for the for-loop in print() where you calculate the (x,y) co-ordinates. Just comment your for-loop and try with this:
    g2.drawString("Testing..",50,50);
    Now, you should be able to print.
    So, work more on your for-loop.
    iDriZ.

  • Printing Nested Structure values

    Hi
    i have two structures and i want to print those values using c#..  I have parent structure which has 5 properties on it and inside that having another child structure which refers 5 properties on it. so now i want to print the values for both structure
    ?Can you help me out ?

    You should use classes instead of structures.  Here is one method
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    test t = new test();
    Console.WriteLine(t.Print());
    public class test
    int a;
    int b;
    test2 c;
    public string Print()
    string results = "";
    results = string.Join(",", new string[] { "a = " + a.ToString() + ", ", "b = " + b.ToString() + ", ", c.Print() });
    return results;
    public class test2
    int d;
    int e;
    public string Print()
    string results = "";
    results = string.Join(",", new string[] { "d = " + d.ToString() + ", ", "e = " + e.ToString() + ", " });
    return results;

Maybe you are looking for

  • Cst Cntre defaulted in PR line items

    Hi All , We have issue running in our prodcution system.  When  PR  created from the shopping cart from SRM system with A/C assignment internal order . Cost centre from 1st line item being copied to next items. Let us say Shopping Cart  has 3 line it

  • How do I read a formatted excel worksheet as a string array

    I am using the report toolkit to read a excel worksheet as a LV string array.  This works fine except that it reads the full precision of numeric cells (~10 digits of precision). In my workbook I have the displayed precision set to 2.  Is there any w

  • Motion Menus Blues!!

    Hello. This is probably really simple but i cannot for the life of me work out how to do it. I have tried searching, but i can't get anything specific to my problem so sorry if i am going over something that's simple. I have a motion background made

  • Applets in non-plugin IE

    I have an applet that loads beatifully on clients that have the java plugin installed. on machines that just run the microsoft vm, it doesn't load and the error message is "ClassNotFoundException". Now these microsft vm machines can load other applet

  • HELP BAPI OUTBOUND DELIVERY

    how fill the input/output tables TEXT_HEADER and TEXT_LINES to create a header text for a newly created delivery by function module BAPI_DELIVERYPROCESSING_EXEC or other function module?. appreciating much its collaboration