Handle list of list of objects in actionForm

Hi,
In my struts application, I am getting results from database, based on my search query.
In result, I am getting set of list of objects mean set contain lists and list contain objects.
I am passing these values from my action class to jsp page using one bean class.
Now I want to pass all changed value from jsp page to my next action class using actionForm.
but problem is, How can I do. because there are set of list of objects.
pls give me suggestion.

<html:select property="allEntity" style="width: 200px">
                              <html:option value="Select an Entity" selected />
                              <html:optionsCollection property="entity" value"id" label="name" />
                              </html:select>
Action Form class:
     private Collection entity;
private String allEntity;
     public Collection getEntity() {
          return entity;
     public void setEntity(Collection entity) {
          this.entity = entity;
entity holds all values, you can use it in the action class.
you can use below too:
String name[] = request.getParameterValues("name");
Message was edited by:
skp71

Similar Messages

  • Best Practice for caching global list of objects

    Here's my situation, (I'm guessing this is mostly a question about cache synchronization):
    I have a database with several tables that contain between 10-50 rows of information. The values in these tables CAN be added/edited/deleted, but this happens VERY RARELY. I have to retrieve a list of these objects VERY FREQUENTLY (sometimes all, sometimes with a simple filter) throughout the application.
    What I would like to do is to load these up at startup time and then only query the cache from then on out, managing the cache manually when necessary.
    My questions are:
    What's the best way to guarantee that I can load a list of objects into the cache and always have them there?
    In the above scenario, would I only need to synchronize the cache on add and delete? Would edits be handled automatically?
    Is it better to ditch this approach and to just cache them myself (this doesn't sound great for deploying in a cluster)?
    Ideas?

    The cache synch feature as it exists today is kind of an "all or nothing" thing. You either synch everything in your app, or nothing in your app. There isn't really any mechanism within TopLink cache synch you can exploit for more app specific cache synch.
    Keeping in mind that I haven't spent much time looking at your app and use cases, I still think that the helper class is the way to go, because it sounds like your need for refreshing is rather infrequent and very specific. I would just make use of JMS and have your app send updates.
    I.e., in some node in the cluster:
    Vector changed = new Vector();
    UnitOfWork uow= session.acquireUnitOfWork();
    MyObject mo = uow.registerObject(someObject);
    // user updates mo in a GUI
    changed.addElement(mo);
    uow.commit();
    MoHelper.broadcastChange(changed);
    Then in MoHelper:
    public void broadcast(Vector changed) {
    Hashtable classnameAndIds = new Hashtable();
    iterate over changed
    if (i.getClassname() exists in classAndIDs)
    classAndIds.get(i.getClassname()).add(i.getId());
    else {
    Vector vc = new Vector();
    vc.add(i.getId())
    classAndIds.add(i.getClassname(),vc);
    jmsTopic.send(classAndIds);
    Then in each node in the cluster you have a listener to the topic/queue:
    public void processJMSMessage(Hashtable classnameAndIds) {
    iterate over classAndIds
    Class c = Class.forname(classname);
    ReadAllQuery raq = new ReadAllQuery(c);
    raq.refreshIdentityMapResult();
    ExpressionBuilder b = new ExpressionBuilder();
    Expression exp = b.get("id").in(idsVector);
    roq.setSelectionCriteria(exp);
    session.executeQuery(roq);
    - Don

  • Best method for scrollable list of objects

    I was attempting to create a list of objects in a scrollable pane with the ScrollPane object. I am having a very hard time customizing what is actually scrolling in that pane, though. By using a custom renderer class, I am able to change what it looks like and even add objects to it, but I am having trouble passing data to those objects at creation because it is loaded through the pane object itself.
    What I would like to do is create an object with buttons on it (relative to that object) and be able to add multiple ones to a scrollable pane. I tried to figure out a way to be able to simply add my object as the item, but it seems to require a specific object. Is there any work around to this? What would be the best way of going about this?
    Thanks for any help.

    Class: java.sql.DatabaseMetadata
    Method: getSQLKeywords
    Desc: Returns a comma-delimited list of all non-SQL92 keywords used by the database
    Example (Source http://javaalmanac.com/egs/java.sql/GetSqlKeywords.html?l=rel ):
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    public String[] getSQLKeywords(Connection connection) {  
       String[] keywords = null;  
       try {       
          DatabaseMetaData dbmd = connection.getMetaData();       
          keywords = dbmd.getSQLKeywords().split(",\\s*");   
       } catch (SQLException e) {
          // Handle Exception   
       return keywords;
    SQL92 Keywords
    The SQL92 specification is available for purchase. However, if you just want the full list of reserved words / keywords for a particular type of database, there is usually documentation provided by the database vendor.
    Full Keyword List Oracle 8.0:
    http://www-rohan.sdsu.edu/doc/oracle/server803/A54656_01/vol2_wor.htm#421705
    For Other Oracle Versions:
    - Visit technet.oracle.com
    - Register for free
    - Go to Documentation
    - Look under K for Keywords in index for newer versions of Oracle
    - Look under Programmer's Guide to the Oracle Call Interface for older versions of Oracle

  • Need to find out the list of objects under a Transport

    Hi ,
    My requriement is to programatically find the list of objects under the Transport.
    I tried using the table E071 but no luck is there any FM or table which gives me the list of objects assigned to the transport request
    Regards,
    kk

    TYPES: BEGIN OF ty_tasks,
            trkorr TYPE trkorr,
            trstatus TYPE trstatus,
            strkorr TYPE strkorr,
            as4user  TYPE tr_as4user,
           END OF ty_tasks,
           BEGIN OF ty_object,
            trkorr TYPE trkorr,
            as4pos TYPE ddposition,
            pgmid TYPE pgmid,
            object TYPE trobjtype,
            obj_name TYPE TROBJ_NAME,
            lang TYPE spras,
           END OF ty_object,
    SELECT-OPTIONS : so_trans FOR e070-trkorr
    *selection from table e070.
      SELECT trkorr
             trstatus
             strkorr
             as4user
             FROM e070 INTO TABLE it_tasks
             WHERE strkorr IN so_trans or
                   trkorr in so_trans.
    IF SY-SUBRC = 0.
    *selection from table e071 to get all the objects
    *under the respective task/request.
    data: g_trans type e070-trkorr,
          g_strkorr type e070-strkorr.
      SELECT trkorr
             as4pos
             pgmid
             object
             obj_name
             lang FROM e071 INTO TABLE it_object
             FOR ALL ENTRIES IN it_tasks
             WHERE trkorr = it_tasks-strkorr.
    hope it might be helpfull.
    regards ,
    aby

  • Please tell me how to handle list item in this concern

    please tell me how to handle list item in this concern
    My problem is:
    i have a category table with column categoryname(varchar type)
    I want to display the records of categoryname in a drop down list (i.e., list item )
    So ..please tell me how to do it
    Thanks in advance..

    This code is just a sample from the Help documentation. It won't work until you modify it for your form.
    Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
    Step 1 code goes in a program unit, not in a trigger.
    Step 2 and 3 code usually goes in a trigger.
    You will have to replace the names of the items and record group with your own names as you have defined them in your form.
    step 1: create a procedure in your application
    procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
    group_id RecordGroup := Find_Group(rg);
    list_id Item := Find_Item(itm);
    Begin
    if Populate_Group(group_id)<>0 then
    Message('Unable to populate record group');
    Raise Form_Trigger_Failure;
    end if;
    Clear_List(list_id);
    Populate_list(list_id, group_id);
    end;
    step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
    step 3: call this procedure as
    load_list('categoryname','rg_cat');

  • Dynamic List of Objects  OracleAS Portals

    <img class="emoticon" src="images/emoticons/confused.gif" border="0" alt="" />
    Hello hope someone can help me
    I have a <strong>List of Objects</strong>, the thing is that I want that list to give a <strong>parameter</strong>, so i can use it in a <strong>query</strong> for showing s<strong>pecific
    content</strong>, from a <strong>database</strong>, depending on the <strong>selected item</strong>, but is that posible, or should I use like a combobox or what do
    you recommend??
    <p>
    <strong>thanks in advance!! </strong><sup><strong> ^_^</strong>
    </sup>
    </p>
    Edited by: DunkelBlume on Sep 2, 2008 11:54 AM

    Hi,
    a list used in the singleSelectOne component does not change or set the currency in the list VO (in opposite to the navigation list). So this synchronization needs to be done programmatically. Examples of dependent list of values are available here
    --> example 62 http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    --> word document you can download from http://thepeninsulasedge.com/frank_nimphius/2008/05/16/blogbuster-treasures-hunt-blog-entries-from-the-lost-orablogs-blog-for-download/
    Frank

  • Entity object attribute with a list of objects

    Does anyone know how one sets up an entity object that has an attribute with a list of objects as the type? (assuming that's supported)
    as in:
    CREATE TYPE phones AS VARRAY(10) OF varchar2(10);
    Create table suppliers (supcode number(5),
    Company varchar2(20),
    ph phones);
    The SOA Suite in jDeveloper (new Entity Object/attributes etc) has an ARRAY that can point to REF or OBJECT. Neither work. When I try to Create DB Object later from the Entity Object I've created I get an invalid type.

    What you suggested about "validation codes on the VO" is not written on the ADF Documentation.
    I try to blindly/strictly follow best practices (particularly on Validations, using Declartive and/or built in validators) on most ADF documentation and blogs but there are many scenarios on coding some large ADF projects that I think must veer away from the best practices stated on the documentation or maybe add new rules on the documentation depending on how complex an ADF project would be.
    I religiously followed best practices stated on the documentation to use Entity and Attribute Validators when performing validations. What I did was i had created lots of Custom Validators (by implementing JboVAlidatorInterface interface) for each of the attributes on an Entity Object that need validated. So those validator is valid only for one attribute, its not reusable. And those validation codes either have reference to a ViewObject or call some PL/SQL procedure. So at some point are codes became messy.
    Ultimately the whole project became harder to manage when the codes became large. Now I am trying to refactor the whole application by separating it into project/package and I am hoping to do it with little Re-coding as possible.
    Hope to get your opinion on this one.
    regards,
    Anton

  • What is Piece List, Work List and Object List

    Hi All,
    Can you please give idea about Piece List, Work List and Object List in BI.
    What are their uses?

    Hi,
    Piece lists
    You can use this request type to set up your own object lists and save them under a name of your choice.
    For more info on this go through the link below
    http://help.sap.com/saphelp_sm32/helpdata/EN/57/38e1b64eb711d182bf0000e829fbfe/content.htm
    Worklists
    Worklists are the quickest and most convenient way of accessing the objects that you need to translate. Translators can call up a worklist in SE63 once a system has been completely set up for translation.
    For more info on this go through the link below
    http://help.sap.com/saphelp_sm310/helpdata/en/77/571a1f492011d1894a0000e829fbbd/content.htm
    Object Lists
    The Object Lists tab page in transaction SLWB enables you to create and manage object lists in the Translation Planner.
    An object list should contain all objects relevant for translation. You can create object lists according to a variety of criteria
    For more info on this go through the link below
    http://help.sap.com/saphelp_sm32/helpdata/EN/d4/341964249711d3b29e0000e817ab98/content.htm
    Regards,
    Marasa.

  • Handling list box in alv

    hai all
    please check the code and tell how i can call in both open and close sales orders
    NAME = 'CATEGORY'.
      VALUE-KEY = 'OPEN'.
      VALUE-TEXT = 'OPEN'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'CLOSE'.
      VALUE-TEXT = 'CLOSE'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.

    Reported to SCN Moderators for multiple postings:
    handling list box in alv
    The specified item was not found.
    pk

  • List of objects in Jsp

    Hi All,
    I have list of object. each object has some fields. ex. item, type, zone. I want to retrieve it in jsp. Now i am using
    <%List itemList = (List)session.getAttribute(Constants.ITEM); %>
    <%     for(int i =0;i<itemList.size();i++){
    NhopItemDef nhopItemDef= (NhopItemDef)itemList.get(i);
    if(nhopItemDef!=null){
    if(nhopItemDef.getItemType().trim().equals(Constants.BED_ZONE)){
    %>
    <tr >
    <td class="tb_dred_left_bf" height="30">
    <html:hidden property="item" value="<%=nhopItemDef.getItem()%>"/>
    <%=nhopItemDef.getItem()%>
    </td>
    Please let me know how to implement it using logic:iterate or c:foreach. which is the best way to implement?
    please provide some example codes here.
    Thanks & regards
    arullakshmi

    arullakshmi wrote:
    Hi All,
    I have list of object. each object has some fields. ex. item, type, zone. I want to retrieve it in jsp. Example:<c:forEach var="item" items="${itemList}">
      <tr>
        <td>${item.name}</td>
        <td>${item.type}</td>
        <td>${item.zone}</td>
      </tr>
    </c:forEach>For more information, check out a good [JSTL tutorial|http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL.html].
    ~

  • Tag files, Lists, and object typing

    I'm passing a list of objects to a custom tag, created via a tag file.
    I can access object properties in the jsp page like this -
    <c:out value="${listOfItems[0].property}" />
    but inside the tag it doesn't work. It understands that its being passed a list and the number of items in the list but not the type of objects in the list. I think I need to declare the type of object that the list is returning but I'm unsure of th jstl way of doing this.
    advice?
    thanks

    JSTL uses introspection/reflection to call methods/access properties.
    It doesn't have to know the type of object in the list.
    How are you accessing this object in your tag file? Using EL again? That should work fine. If you use java/scriptlet code then you will need to cast the object.
    Have you declared the attribute that is being passed in? What type are you expecting? Default is String unless you specify otherwise.

  • Changing focus line in List View object?

    Hi -
    I have an list view object on my dashboard that displays about 50 lines of data, with the very first line being a total line. You can drill-into the any one item on the list view to see detail in another chart. The content of the list view is updated when the date range is change from current month to previous month.
    My question is this: if I select the 5th line item in the list view then change the date range, the list view retains the focus on the 5th line even after it is updated - so is it possible to force the list view to change the focus to the 1st line everytime the date range changes?
    I am guessing no because I see nothing in the properties of the list view that allows you to control focus.
    Thanks in Advance!

    Melissa,
    No there is no option as such in the component. May be you can use the Reset button component.
    -Anil

  • Function Module which gives complete list of objects that another object to

    Hi All,
    Is there any standard FM that can give us complete list of objects that another object(Order/Cost Center) settles to??
    Thanks in advance,
    Prathima

    Hi,
    Question is not clear.
    Revert back,
    Regards,
    Naveen

  • Listing New Objects Like views and tables

    Hi...
    Are we able to use SELECT statement to get a list of objects like tables or views which created in a given time frame ?
    For example, since OCT 2010...
    Thanks.

    hi,
    these objects are depend on your interest.
    actually there are three types of tables which stores the information about objects:
    1. user_objects: which contains all the objects that are owned by the owner of the schema.
    2. all_objects: this shows you all the objects that are acccesible to you, i.e. may be you can have access on some other user's objects.
    3. dba_objects: which shows the objects in the database.

  • List of object R3TR

    Hello,
    I search where are stored the data of field PGMID and OBJECT   of TADIR.
    Can you help me to find the tables where are stored the object field ?
    Thank tou
    Thierry

    Check Function Module [TRINT_OBJECT_TABLE |http://forums.sdn.sap.com/search.jspa?threadID=&q=TRINT_OBJECT_TABLE&objID=c42&dateRange=all&numResults=30&rankBy=10001](test with iv_complete  = 'X') you will get a list of object id and type.
    Regards,
    Raymond

Maybe you are looking for

  • Nokia OVI Suite and Nokia Care Support

    Today I called Nokia Support, because I could not download maps with map loader. The guy asked if the ovi suite is installed. I told him, that the Ovi suite keeps on crashing on start-up on my machine, and that all other software is running fine, e.g

  • Mac Mini Wake for Network Access Not working after upgrade

    After upgrading to the latest OS (10.8) the WOL fuction is not work.  This used to work before the release.  i could see the Mac mini on my mac book pro even when it was asleep.  Once I click on it under the shared resources area I could see the Mac

  • Colorful X, but no DE/WM/anything

    Can't quite tell you when this happened (as it was some time ago -- I believe after a kernel update), but after a reboot, I login, try to bring up DWM through CDM -- get thrown into X where it decides to start cycling me through colors -- black, whit

  • IPhone connection to Samsung WEP420

    I have an iPhone 3Gs that I have recently upgraded to the V4 operating system. Before the upgrade I was unable to connect to my Samsung headset and hoped it would change after the V4 install. It has not and I can still no longer use my headset. Does

  • Please help urgently!!!! russian letters in request

    Hi peoples please help i put in request few parameters, but the values of these parameters are strings on russian language, so when i'm getting this parameters i can't properly get back values. how can i do this???