Best approach to store collection for html:options

I am using struts to develop my web application. I am trying to figure out the best way to store a Collection for html:options inside a html:select element.
My JSP page has a html:select statement which lists all the groups in a system. I have a member variable called getGroupNames() in my ActionForm class. When the JSP page is first requested, I populate the groupNames attribute of ActionForm class with a list of names. The html:options reads the groupNames attribute and lists all the group names.
The problem: Once the user selects a group name and then submits, if there is any validation problems in other fields in the JSP, I build ActionErrors object and forward the request back to the same JSP. However, now I get an error saying the groupNames is NULL.
Option1: One way to avoid this error is to AGAIN populate the groupNames list if there is a validation problem.
Option 2: Another way is to store the list of groupnames in a seperate bean (and NOT as an attrib of the ActionForm) and store it in the REQUEST scope. This way I think the I don't have reload the groupName list in case of a validation failure.
Could someone please help me in deciding which will be the right approach.
Thanks

Hi,
1,2 billion rows and each row of 50 bytes - approximately 56 GB around. Huge segment. As you stated it's an OLTP database, can you check across what is the percentage or maximum number of queries with developers - important column which they are querying across and application dealt with.
Based on the input of the above question we can check how best we can partition and columns we are dealing. Perhaps you have stated across historical data. From this kindly verify across what is the % of users check or go-back to historical information - based on that we can estimate the number of partitions we can create on segment and looking forward, you must estimate the % of increase of new/incoming data and day/month wise. so that you might be plan what can we do the old historical data.
HTH
Note- Part of Performance dealt with writing efficient tuned queries
- Pavan Kumar N

Similar Messages

  • ITS 620 - how to create a service file for SAPGUI for HTML option

    Hi,
    We have the following configuration :
    ITS 620 installed
    IIS webserver
    NTLM Authentication on webserver
    SAP 46C
    We have some reports that use the IACs option of creating ITS reports and we are able to create the service files using webstudio where we can save a service id and password so that when the ITS page is called, it logs on the user directly into the system.
    Now, we are trying to create a new ITS page for a custom Z transaction and would like to use the SAPGUI for HTML option so that we do not have to use Webstudio to create and modify the HTML pages.
    When I call the ITS page for the new transaction, it brings up the logon screen for the user, which we want to avoid. If I create a new service file for this Z transaction without any HTML pages then I get an error.
    Is there a way to copy the WEBGUI.SRVC file to a custome SRVC file, I tried to create to copy it to a test file called ZTEST.SRVC for my test transaction called ZTEST and now I get an error.
    thanks in advance
    N.S.

    Hello N.S.
    You can create a service file, like ZSERVICE.SRVC.  The parameters should be:
    ~webgui 1
    ~transaction ztransaction
    ~client  001
    ~login   username
    ~password  password
    ~language  EN
    The "~webgui 1" allows the ITS to use the Webgui to dynamically generate the page (no IAC needed.)
    The "~transaction" is the transaction code of your service.
    The "~client" is the client number.
    The "~login" is the username.
    The "~password" is the user's password.
    the "~language" is the language for the users.
    Note that the last four are required for automatic logon.  If end users use a variety of languages though the ~language can be prepended to the URL to support different languages.  (Leave it blank in the srvc file then.)
    Edgar

  • Best Approach to store 1.2 billion records

    Hello All,
    In our OLTP database there will be few tables with 1.2 billion records. The row length is approximate 50 bytes.
    Please can I know what are best options to store this historical data.
    Would it be advisable to store all this records go in one partitioned table, or create a separate schema in the same database for storage.
    Would it impact performance of the database?
    thanks

    Hi,
    1,2 billion rows and each row of 50 bytes - approximately 56 GB around. Huge segment. As you stated it's an OLTP database, can you check across what is the percentage or maximum number of queries with developers - important column which they are querying across and application dealt with.
    Based on the input of the above question we can check how best we can partition and columns we are dealing. Perhaps you have stated across historical data. From this kindly verify across what is the % of users check or go-back to historical information - based on that we can estimate the number of partitions we can create on segment and looking forward, you must estimate the % of increase of new/incoming data and day/month wise. so that you might be plan what can we do the old historical data.
    HTH
    Note- Part of Performance dealt with writing efficient tuned queries
    - Pavan Kumar N

  • No UK in-store collection for iPad

    So - we will have to listen out for the door all day! shame - i was looking to a glasgow store visit and stocking up on a case!
    dc

    Colin Robinson wrote:
    Isn't there another being opened soon at Covent Garden?
    I ordered mine in the early hours of this morning, refreshing the window every minute until the store came back up
    First thing I did at work was to book the 28th off so I can start playing as soon as it arrives so that's a 3 day week for me 'cos Monday is a Bank Holiday.
    The case I've gone for is from Tom Bihn:
    http://www.tombihn.com/page/001/PROD/300/TB0222
    I've used their products for a while now and am a recurring customer.
    The rest of the accessories I can pick up from the Apple store here in Norwich on the weekend.
    Only 18 days to go...
    I eventually ordered at around 3am.
    The checkout thoroughly confused me as though iPad kept listing as delivered by 28th, the O2 SIM and a couple of accessories were 'ship by 28th' so I couldn't figure out if the order will be delayed by accessories (dock and case). The T&Cs for orders said they often dispatch orders in parts whereas the order summary said all to be dispatched at once - I could not see an option to deliver as things become available.
    I'd far rather have been able to pre-order to collect at store - I'm working that Friday/Sunday and will undoubtedly be out if delivery arrives on 28th, but I figured I'd rather order and fetch from a depot on the Saturday than risk the local store being out of stock on the 29th.
    It would not however surprise me in the slightest if a pre-order from store becomes available in the next week or so.
    I also read something somewhere that O2 might sell a 3G contract subsidised iPad but unless that's confirmed you can't rely on it.
    Message was edited by: Alley_Cat

  • What is the best approach to store "dynamic" user accessibility ?

    Hi all,
    We are implemennting security in our ADF BC + Faces application. There is always requirement to hide/disable functionalities that a user is not allowed / authorized to access.
    Usually we do this during development time, based on what role the user is in. Using this approach, there is no way to change that , or give access to new role during runtime (after the deployment). This is what I call "static accessibility".
    In our apps, we need the give / revoke access to some functionalities during runtime. This is what I call "dynamic accessibility".
    One approach that comes to my mind is :
    We define the accessibility to each function that we want to protect (hide/unhide) in database tables. Then every time a use enter a page, read these tables through JDBC calls then store tha data in Managed Bean.
    Has anybody here implement this "dynamic accessibility" ?
    Is there a better approach ?
    Thank you very much,
    xtanto

    Saeed,
    SRDemo uses a managed bean that checks is user in role when called and returns true or false. Another approach - more elegant - is the use of a security property resolver as available
    http://jsf-security.sourceforge.net
    Regarding dynamic permissions, the use of JAAS seems to be a good solution. ADF Security uses JAAS permissions to assign component access to users.
    E.g. if the user role manager has access to edit the salary column, then the security constraint added to the update button could be
    #{!bindings.<attribute binding>.updateable}
    Note that ADF Security sets the updateable flag on an attribute.
    Or you use
    #{bindings.<iterator binding>.permissionInfo.create}
    #{bindings.<attribute binding>.permissionInfo.update}
    #{bindings.permissionInfo['pageDefName'].view}
    etc. to determine what a user can do or can't.
    Note that I haven't tested if the permissions are cached for a specific application or if they are checked each time again. If they are checked each time then this would be a performance penalty but allows to dynamically set permissions to user groups as obviously needed in your applications.
    No, we don't have tutorial for this. But a Oracle By Example for end-to-end security implementation is on my collateral plan for JDeveloper 11 (just need to write a doc writer ;-) )
    Frank

  • What is the best way to store data for this project?

    hey everyone,
    I have been subscribed to this for a while, not sure if I have ever actually asked anything though.
    I have a project on the go for myself/portfolio
    It is a booking sheet, where by I have a GUI that has a diary system of a day followed by time slots. This also has a date picker that can change the date of the booking sheet
    I want to be able to store mainly strings and ints,
    I need to be able to store, retrieve and on occasion change some data.
    I was looking at using something called JExcelAPI but I cant get that to work at all, I asked for assistance but was refered to here.
    what would be the best way to implement this data storage?
    davyk

    Hey everyone,
    Back again,
    I got this this little snippet of code working but want to ask you guys for a little bit of help on it. if thats ok?
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         String dataSourceName = "mdbTEST";
         String dbURL = "jdbc:odbc:" + dataSourceName;
         Connection con = DriverManager.getConnection(dbURL, "","");
         // try and create a java.sql.Statement so we can run queries
         Statement s = con.createStatement();
         s.execute("create table TEST1234567 ( column_1 char(27), column_2 char(150), column_3 char(150), column_4 char(150), column_5 char(150), column_6 char(150))"); // create a table
         s.execute("insert into TEST1234567 values('"+date+"','"+a+"','"+b+"','"+c+"','"+d+"','"+e+"',)"); // insert some data into the table
         s.execute("select column_7 from TEST1234567"); // select the data from the table
         ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
         if (rs != null) // if rs == null, then there is no ResultSet to view
                    while ( rs.next() ) // this will step through our data row-by-row
              /* the next line will get the first column in our current row's ResultSet
              as a String ( getString( columnNumber) ) and output it to the screen */
                   System.out.println("Data from column_2: " + rs.getString(1) );
         s.execute("drop table TEST1234567");
         s.close(); // close the Statement to let the database know we're done with it
         con.close(); // close the Connection to let the database know we're done with it
    catch (Exception err)
         System.out.println("ERROR: " + err);
         err.printStackTrace();
    }there are more columns, but i cut this code down.
    my question is:
    I think I want a method with an if statement to see whether the table is created or not, if not create it, but how do I go about this? I have searched the API and google, but my brain is fried.
    Also do I always have to do the try/catch and have the code of Class.forname to Statement s in all methods that want to deal with the table?
    davy

  • Best way to store info for Yellow Pages-type site?

    I'm working on a site that is similar in concept to a "Yellow
    Pages"-type setup, where you have a bunch of business listings with
    each of them able to customize their own profile.
    Each business will be able to save standard things like its
    tel, fax, address, description, etc. There would also be a list of
    specific checkboxes for each business, such as "Delivery
    Available", "Open 24 Hours", "Now Hiring", etc. Also, businesses
    with multiple locations will be able to save these locations with
    their own specific tel, address, and other info. Lastly, they will
    be able to customize their listing to match their corporate look.
    Whereas the searches will of course be database driven, I'm
    having trouble deciding which of the following ways to display a
    specific business information on their actual specific profile
    pages.
    Database-only: Everytime any info
    about a business is needed, it's pulled via a database call.
    XML: Create a single XML file for
    each business (named after its ID) with all of the business info
    and styles, load it, and pull from there.
    Hybrid: Use database calls for the
    business' text information, but create a CSS stylesheet named after
    the business' ID for use in the business profile's layout.
    Which of these would be most efficient and have the least
    server impact?

    I apologize - I should have clarified the XML and hybrid
    options. Let me do that:
    The customer's information will be stored in a database. When
    they go to edit their information, the editors will populated from
    the database. However, once they hit "save" the site will write an
    XML file with that information. If they update again, that same
    file is overwritten.
    Now, everytime someone visits their profile, the profile's
    characteristics and info are pulled from that XML file. The intent
    is to take a load off the DB so it can perform better for searches,
    updates, and other truly dynamic features for the site. My feeling
    is that there's no need to hit the database for the company
    profiles since it's information that would normally change pretty
    infrequently. For up-to-the-minute information (news, search
    results, forums, etc.), however, i would continue to do direct
    database calls via cfc's or whatever.
    My basic question is: what is easier for CF to do: 1) Parse
    an existing static XML document or 2) query and pull the
    appropriate info from a live database?
    Keep in mind that this site will eventually have thousands of
    businesses and a lot of activity outside of their profiles (event
    schedules, news, reviews, etc.).

  • Best approach for roll over in BPC?

    Hi All,
    We are currently looking for the best approach in SAP BPC for the roll
    forward of closing balances into opening balances from the previous
    year to the current period.
    Our current approach takes the closing balance account lines from the
    previous year , copies them into specific opening year members (f_init
    and ob_init) using business transformation rules then every month there
    are business transformation rules which takes these values in local and
    base currency to calculate the fx gain\loss and also copies over the
    closing balance at the historic rate into the opening balance of the
    current period. This approach takes both input data and journal data
    into account.
    We also need to take into account now the fact that we need to pull
    through any journals which were posted to adjustment companies and some
    (but not all) legal entities for traditional lines which do not have
    typical opening balance accounts (e.g. cash, stock, accruals etcu2026). The
    approach above can work but we need to add the relevant opening balance
    accounts.
    Please could you advise whether there is a better approach than this?
    Kind Regards,
    Fiona

    I normally prefer saving images in LocalFolder and save file name in database table. I prefer this because saving just file name will keep size of SQLite database small so will load faster.
    Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor

  • Best way to store digital images?

    I have all of my digital images for personal and business loaded in my home pc (Windows XP, sorted in a Kodak Easyshare program). Recently purchased a laptop. All of my information from the PC was transferred/copied onto the laptop. However, I want to store the images on something separate from the laptop. Approximately 10GB worth of images.
    What is the best way to store them for easy access to view and copy/print or for uploading to a site to print out pix for photo albums, etc.
    Thanks!

    TheLexMachine wrote:
    empty317 wrote:
    I have all of my digital images for personal and business loaded in my home pc (Windows XP, sorted in a Kodak Easyshare program). Recently purchased a laptop. All of my information from the PC was transferred/copied onto the laptop. However, I want to store the images on something separate from the laptop. Approximately 10GB worth of images.
    What is the best way to store them for easy access to view and copy/print or for uploading to a site to print out pix for photo albums, etc.
    Thanks!
    The best way to store your images is to get a high-capacity flash memory device, preferably an SDHC card because they have a lock switch that prevents writing when the card doesn't need to be written to, and use that to archive your files. Simply keep it inside a memory card case in a safe place, such as a personal lock-box, and you're good to go. You can take that card to any photo kiosk or someone's home to do whatever you want to with the files.
    Good point, I'm so ingrained against that particular solution due to the sheer amount of images I have (I can easily fill up an 8GB SDHC in 1-2 days when airshow season rolls around, plus I have an HD camcorder that takes about 8GB/hour), but since the OP only has 10GB total, making copies to 2-3 16GB SDHC cards and storing them in safe places would be an excellent approach.  Choose one location (maybe the desktop or the laptop's hard drive) as a "master" and periodically back up to all the SDHCs.
    Just make sure to choose a "master" storage location or you'll go insane trying to keep things synchronized.
    Online storage solutions such as Dropbox and similar services might also be an option for only 10GB of data.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • SAP GUI for HTML - Short dump for Office intehration

    Hi Experts.
      I am using portal to view the transaction and it needs to open a document, while opening a document through it getting an error. when using
      SAPGUI for HTML. 
      But it is working fine for GUI for Windows. ( selected this option in iView). It also works fine when use the transaction SAP itself.
    Getting an below error from portal.
    A RAISE statement in program "C_OI_CONTAINER_CONTROL_CREATORCP" has rais
    exception condition "JAVABEANNOTSUPPORTED".
    Since the exception was not caught by a program higher up in the call
    hierarchy, processing was terminated.
    Thanks
    Rag

    Anurag,
      I have gone through notes.
    I am using 7.2 version and access transaction through portal. while opening MS-office document, it is giving an error like JAVABEANNOTSUPPORT. and OFFICEINTREGRATION issue.
    While opening it in SAP its working fine as well as using GUY for Windows also good.
    But giving a short dump while accessing through portal with GUI for HTML option.
    Any idea or work around for the same.
    Thanks
    Rag

  • What is the best place to store salts

    Hi,
    I'm using a combination of flex ,CF and MS SQL
    Where is the best place to store salts for user passwords?

    Hi,
    Table is good if "constant" might change so you can create APEX form to maintain those.
    You could also use package specification just for constants e.g.
    CREATE OR REPLACE
    PACKAGE MY_GLOBALS
    AS
      g_const_1 CONSTANT DATE := TRUNC(SYSDATE) + 365;
      g_const _2 CONSTANT VARCHAR2(30) := 'somestring';
    END;
    Then you can refer those in procedures, functions and APEX processes like (package_name.constant_name) MY_GLOBALS.g_const_1.
    Regards,
    Jari

  • Best approach to creating layouts and design pages for windows store 8.1 applications?

    Hi Everybody,
    Actually I want to design pages for windows store 8.1 applications which are compatible for all windows phone with different resolutions. I want best approach for designing pages, currently I am using * type divisions and designing the pages rather than
    that is there any best approach?

    Here is another some helpful docs:
    Laying out an app page
    Laying out your UI (HTML)
    Laying out your UI (XAML)
    Navigation design patterns
    Choosing a layout (HTML)
    Command design patterns
    Guidelines for advertising
    Guidelines for multiple windows
    Guidelines for projection manager
    Guidelines for resizing windows to tall and narrow layouts
    Guidelines for scaling to pixel density
    Guidelines for window sizes and scaling to screens
    Hope helps.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Which one is the best approach for responsive UI development option in SharePoint 2013

    Which one is the best approach for responsive UI development option in SharePoint 2013
    Device channel or responsive UI (HTML, CSS)?

    In practice you're probably going to end up with a combination. A couple of device channels for classes of device and then responsive UI within those channels to adjust to particular devices within the classes.
    Of course the real answer is as always 'it depends' as you'll need to pick the best option for each client based on their needs.

  • Arrays for collection attribute in html:options

    I would like to use an array with Struts' options tag,
    using the array index for the options' 'value' attributes.
    <html-el:select property="style" value="${listForm.style}">
    <html-el:options collection="styles" property="index" labelProperty="value"/>
    </html-el:select>
    "index" being the index into the array, and 'value' the String at styles[index].
    Is this possible?

    You can do this with the FormattedDataSet using the ##rowNum variable.
    steve - http://www.fdsapi.com - The easiest way to generate dynamic xml and html.

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

Maybe you are looking for

  • Accessing container variables from ccBPM in Message Mapping?

    Hello Friends, I have created a ccBPM and require to send response messages to the sending system at different points as the message proceeds from one state to another. I do not want to create multiple message mapping stating different status in ever

  • Greyed out rent and buy buttons on itunes  - using iPad2

    Dear All, Seeking the collective wisdom. I am unable to rent or buy videos from itunes on my iPad2. The "buy it" and rent it" buttons are greyed out. The only feasible explantion so far would have been if there were restrictions on but I have checked

  • Can unencrypted items in a https connection be hidden?

    Some time ago, IE had an option to hide unencrypted items in a https connection. I can't find such an option now, so I can't give more details. Bu the point is: can Firefox do that? Some sites have only partially encrypted connections and to me it is

  • How to encrypt the drive/folder in mountain lion

    My air has upgraded to Mountain Lion, however, i can't seem to see the encrypt option from the contestual menu in Finder? Thanks

  • SSO configuration in BOBJ 4 with Active Directory

    Hi Experts, Our client wants to implement the BOBJ on AIX 7.1 box with oracle 11G and wants to configure the Active Directory authentication for the BOBJ. BI 7.0 is already implemented on AIX. I have searched a lot to find the relevant document for t