What technology to use to store a huge list of name-value pairs?

Hi:
I have a list of name value pairs (the size of the list is ~500). I get the name from the request parameter, and depending on the value for that, I have to display images on my webpage.
How should I go about this? Should I use a Hashtable to store the values or should I use an array or should I got for XML and some pattern matching or should I write to a text file and do some pattern matching?
Please help.
Thanks

Did you mean huge (several million) or is 500 more like the number? For "huge" you use a database. For 500, if you want to access the value when you are given the name, you use a Map. Probably a HashMap would be best.

Similar Messages

  • What is the use of general maintenance task list?

    Hi expert,
    I want know What is the use of general maintenance task list in SAP plant maintenance & how to use this step by step.
    Regards,
    Ram Rathode

    Hi
    A task list in PM is created to perform a specific repair or maintenance task. The task list consists of work operations and components needed to complete the job. Often a task list will be associated with a functional location or equipment, where not tied to a specific technical object it is known as a general task list.
    Task lists can be assigned to a order, the operations/components are imported into the order. Task lists are also assigned to maintenance plans - once orders are generated from the plan the task list is transfered to the order.
    -Paul
    Please use [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum for PM/CS specific topics

  • Using JcomboBox name value pair

    Hi,
    I am designing a database system in Java using Swing for interfaces .. I have an issue with the ComboBox .. I was wondering if it is possible to have a name value pair for a combobox just like the html <select> tag .. becasue i am getting the data for the combobox from the database but I want it to display one column in the list and when chosen the value should be another field from the database.
    example: it should dispplay empFirstName .. nut when selected the value should be EmpID.
    Can someone hel me wtih this one ..
    thanks
    sandeep      

    You asked the same question in this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=475554
    You were given answers and example code. If the answers and code are not what you need then you need to restate your question, to make your requirements clearer because you have been given the same answer three times.

  • Distributed web service.  What technology to use?

    Hi all,
    I need advice on what technology, architecture and platforms to use for the following:
    I have 1 thousand remote clients. These clients must receive notifications from my server on certain events that happen specific to that client.
    I would like to create a web based application that the client can log into and then whenever the specific event occurs it must show on his/her screen - I don't want the web page to refresh every 10 seconds and check a database (or some variable on the server) to check for the event. I want the server to send a message to that persons browser notifying them of the event.
    What is the best way to do this?
    Regards,

    Sounds like applets would do the job. Will require installation of the JRE on clients.
    One problem: applets can open socket connections only to the computer from which they were loaded. Unless you sign them. If there is a web server sitting at port 80, where do you put the push server... A hack is to use port 443 (HTTPS) for the push. 80 and 443 are probably most often open in firewalls.
    If a user has a proxying firewall no push scheme will get through. There may be other push-unfriendly firewall schemes too, such as forcefully closing all connections after a few minutes' timeout.
    Also - If I could have a java app/applet on the client's machine -
    what is best practice to maintain a thousand connections if I
    use sockets? (usually I spawn a thread for new sockets, but
    I surely can't do that with 1000 clients?)1000 threads is indeed a bit on the high side. If the client never sends anything back you could simply not read from the sockets in the server. No need for per-client threads then. If you need to read use a NIO selector. I'd probably code a selector even if I didn't need to read from the clients, just for cleanliness.

  • What technologies to use in web based application...??

    Hi,
    I have to develop a web-based application that will be used to display configured tests to user as well will allow user to add new tests and modify/delete already configured tests. What technologies shall i use to develop this application. And what will be fast to learn.
    What is your opinion on applet-servlet approach here.
    Please suggest.
    Thanks,
    Deepak

    What you've got sounds good.
    If you're not going to build EJBs then you probably don't need JBoss.
    Tomcat is the servlet engine for JBoss so you're getting the same thing but lighter by just using it.
    The important thing is to make sure you have a nice separation of concerns. If you separate all of the database access by creating data access objects (DAO) objects that return plain old Java objects (POJO) then you can, if you choose, easily swap in Hibernate or another ORM Tool.

  • What do you use for a To Do list?

    Curious to know what folks here use for a ToDo list. I'm seriously thinking of migrating from Outlook, which actually has a very good one. iCal's is okay, but it won't print out in the same order that it appears on the screen. (It's downright goofy to print out.)
    So I'm looking for alternatives.
    Any suggestions?
    Thanks in advance,
    rb

    What an interesting question. I have wondered this too. I have played with a few different ones. The one I have been trying for about a week is EasyTask (look it up on version tracker. Sorry, I do not know how to do links). You can use the demo indefinitely but you are limited to 15 tasks, I think it is about $20 to buy it. I like the way it allows me to sort and prioritize. It's based on Getting Things Done system.
    Another I have used is Check Off, which is very simple, but good. It is also freeware. Find it via VersionTracker too.
    I have also done a very simple template for myself just using Appleworks for printing out.
    A lot depends on what your individual needs are.

  • Help with using mergesort to sort a list of names alphabetically?

    Hi, I'm trying to sort a list of names alphabetically, case-insensitive by using the mergesort technique.
    I wrote this code and when I trace it through on paper with an example array of names, it should work, but when I run it with an actual txt file, it's not correctly alphabetical.
    I'd appreciate it if someone could take a look at my code and give me some ideas on what my problem might be.
    Thanks in advance! (note: I also posted this question to java-forums.org, as I've been working on this little problem for over five hours and am in desperate need of some help!)
    public static void mergeSort(String[] names) 
            if (names.length >= 2) 
                String[] left = new String[names.length/2]; 
                String[] right = new String[names.length-names.length/2]; 
                for (int i = 0; i < left.length; i++) 
                    left[i] = names;
    for (int i = 0; i < right.length; i++)
    right[i] = names[i + names.length/2];
    mergeSort(left);
    mergeSort(right);
    merge(names, left, right);
    // pre : result is empty; list1 is sorted; list2 is sorted
    // post: result contains result of merging sorted lists;
    // add merge method below
    public static void merge(String[] names, String[] left, String[] right)
    int i1 = 0;
    int i2 = 0;
    for (int i = 0; i < names.length; i++)
    if (i2 >= right.length || (i1 < left.length && left[i1].compareToIgnoreCase(right[i1])<0))
    names[i] = left[i1];
    i1++;
    } else
    names[i] = right[i2];
    i2++;

    Welcome to the forum.
    Please read this to learn hot to format your code (and other things relevant for this forum):
    https://forums.oracle.com/forums/ann.jspa?annID=1535
    923566 wrote:
    Hi, I'm trying to sort a list of names alphabetically, case-insensitive by using the mergesort technique.
    I wrote this codeDo you know the <tt>TreeSet</tt> class?
    http://docs.oracle.com/javase/7/docs/api/java/util/TreeSet.html
    With that sorting Strings is a two liner:
    http://www.java2s.com/Code/Java/Collections-Data-Structure/TreeSetDemo.htm
    bye
    TPD

  • What datatype is used to store color value

    Hi,
    I am getting color value from flash.
    but i am not able to store color value to any data type in java.
    Which datatype need top be used?
    Plzzzzzzzzz help me....

    Check the API document
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Color.html#Color(int,%20int,%20int)
    Use the constructors, methods provided.

  • Beginner confusion:  what technologies to use for a new web application ?

    Hello,
    Being a beginner to JDeveloper , I am very confused because it looks like
    there are so many alternatives : JSF vs ADF faces vs Swing,
    EJB vs Toplink vs ADF business components.
    I am having trouble with determining which of these alternative technologies
    would be the most productive (in terms speed of development).
    Which of those technologies are recommended for a small web-based application?
    Thanks,
    Adrian Maier

    For my projects, the technology is chosen (from JDeveloper's available technologies) that best suits the requirements for the project. In my experience ADF Business Components are awesome if there are lots of database tables involved, but you need to have the patience to sit down and learn the technology intimately if you wish to perform complex tasks with them.
    As for JSF vs. ADF Faces vs. Swing...
    ADF Faces is like a framework built on top of Java Server Faces to supply a more rapid development process than just solo JSP/JSF. Consequentially, I find that ADF Faces sort of limits my desire for certain power over the application front end though...
    In the end, what you start with depends also on what you know. If you are new to JSF/JSP then I would start there. ADF Faces became much more intuitive to me once I became educated on the base technology that it works with.

  • What file is used to store e-mails which have been downloaded

    Where are my downloaded e-mails kept on my computer ?

    %AppData%\Roaming\Thunderbird\Profiles\.........default\ImapMail\imap.googlemail.com
    or
    %AppData%\Roaming\Thunderbird\Profiles\.........default\Mail\Local Folders

  • Using XSL-XML template to convert name value pairs into XML elements

    Hi,
    I have a xml document in the format:
    <?xml version=”1.0”?>
    <body title="Mr" firstName="Joesph" middeNames="George Harry" lastname="Smith" countrycode="GBP"/>
    I need to convert this using a XSL-XML template in BI publisher to return XML in the following format, while doing some conversion, e.g. converting countrycode from GBP to UK:
    <?xml version=”1.0”?>
    <body>
    <title>Mr</title>
    <firstName>Joseph</firstName>
    <middleNames>George Harry</middleNames>
    <lastname>Smith</lastname>
    <countrycode>UK</countrycode>
    </body>
    Would appreciate if anyone could point me in the correct direction.

    Hi Sweta,
    Why MTB??? Message Transformation bean is used to change the format of the message... If you are planning to call any XSLT or java mapping through that then you can give it a try..
    >>how to get the last and first 3 special characters in the output text using MTB?
    Put them in message mapping itself and write it in File
    Regards
    Suraj

  • What Technology used for Adobe AIR Installer

    Hi...Guys..For Mac environment what technology was used to built Adobe AIR Installer Window,the one we get when Installing Adobe AIR Application.I need to identify the Elements in it such as Agree,Cancel etc..But i am not able to do that..It will be helpful if any one suggest the automation tool to identify those elements so that i can automate the installation procedure of AIR...Plz reply...its an emergency..thanks in advance.

    I think comodo code signing certificate is one of the nice option to be added for Adobe Air, as i have seen comodo code signing certificate in other adobe programs. Recently i bought comodo code signing from https://cheapsslsecurity.com/comodo/codesigningcertificate.html, to sign one of my adobe application and it works fine, you can use microsoft authenticode technology with comodo code signing.

  • What technology that can be used for the creation of Need Definition?

    Being on SAP SRM 4.0, we currently have a requirement for creation of Need Definition( Basically a build up for the contract ). Need being collected from the Backend systems need to be validated and approved by Buyers & Lead Buyers in the SRM system.
    Technically, this task is broken down to below tasks.
    1) Creation of need definition screen - Basically a template where a need can be created with Items, Sub Items and other related information
    2) Selection Screen for Buyers and Lead Buyers - This enables the the Buyers to select the Need Definition assigned to them based on the status. 
    3) Report - List of all the Need Definition( Item and Sub Item)satisfying the selection of step 2. with the possibility to navigate to the Need Definition screen ( Step 1) upon selection.
    Now the question is,
    what technology is recommended for the above Tasks? We thought it would be BSP but do you guys have any suggestions...
    Do we have any issues in displaying the report in BSP? please let me know
    Remember we are version 4.0 of SRM.
    Thanks in Advance..
    Mohan.

    You can use conditional styles to address specific browser issues (this is more than likely the markup you noticed).
    Here's a good guide:
    http://www.quirksmode.org/css/condcom.html

  • What kind of database the SSMA uses to store metadata in the file named "source-metabase.mb" ?

    What kind of database the SSMA uses to store metadata in the file named "source-metabase.mb" ?
    I'm looking for the method to open the file and add 'cutom migration script' (some automatization).

    Hi Poman.Pokrovskij,
    When you generate SSMA Assessment Report, there are several files created and saved into Report folder under your SSMA project folder. It includes
    source-metabase.mb, project-container.mappings, preferences.prefs, and so on.
    . MD files are usually saved in plain text format including inline text symbols, defining how a text is formatted such as the indentations, its table formatting, fonts, and headers.
    SSMA provides a project setting that allow you to customize how to set customized database migration. For example, to customize data migration SQL statement, you can modify project setting by navigating to Tools and choosing Project Settings,
    then looking for the setting for
    Extended Data Migration Options and change the value to
    Show. You can select use custom select and modify the SQL statement.
    For more information about SSMA for Oracle, you can review the following articles.How To Perform Incremental Data Migration Using SSMA:
    http://blogs.msdn.com/b/ssma/archive/2010/10/04/how-to-perform-incremental-data-migration-using-ssma.aspx
    Using SSMA Project Setting to Customize Database Migration:
    http://blogs.msdn.com/b/ssma/archive/2011/03/16/using-ssma-project-setting-to-customize-database-migration.aspx?Redirected=true
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • What to use to store binary data in Java

    Hello,
    I have to read data stored as varbinary in the SQL database. What kind of class, data type I can use to store binary data from database?
    I need to store binary data finally in ByteBuffer.
    Please, help.
    Thank you!

    Unfortunately, when I am doing following I am getting an exception:
    ByteBuffer lUTF8BIN=ByteBuffer.allocate(6)
    byte [] lTempByteArray lTempByteArray = Recordset.getBytes(VarBinColumn);
    if (lUTF8BIN.remaining()>=lTempByteArray.length)
    lUTF8BIN.put(lTempByteArray);
    Exception is java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion

Maybe you are looking for

  • How can i get LatLng out of a database to work in maps?

    Hello, I am struggeling with a problem with a project of mine for several months now. In Flash Builder i have a Flex Mobile Project with a list and on click, i want a map to show up. What i try to do is, get the coordinates from a database and transp

  • Variables and Actions in Adobe Acrobat Connect Pro

    Hello Gurus, I have been searching different forums around the net for three days, so I am really frustrated since I cant find anything related to this, and I am even thinking if this is really possible. I'll try to explain what I wanted to make. I a

  • Read header text from vf01 and print in script main window

    Hi Gurus,            I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable

  • How to retrive dynamic directory structure from data base and show it

    i want to display a directory structur on jsp my problem is that i want to read it from a database how i can read a tree structure i found a function to read directry structur but if i use this function i am not able to find who the parent is ? this

  • Clear printer queue

    I can not delete the print jobs in the printer queue by highlighting the job and delete.  What is the next thing I can try? cb This question was solved. View Solution.