Saving servlet html input parameters and reuse it for later time

Dear all,
I am using one of charting api (netcharts pro) to develop a j2ee based charting application (jsp/servlet).
One of the requirement is to be able to capture the user input (set of selections) and save it as simple file or even save it in a database, and reuse it at later time.
At later time user do not need to make a selection from the scratch, and user can re-select/re-open his file (or database record) and generate charts.
in practical words :
user can input thru request.getParameter() or reading set of parameters from file
I will appreciate if someone can lead me to pointers/link/idea.

Reading file is exactly the same as you do for a normal app.
BufferedReader br = new BufferedReader(new FileReader(
                          new File("someFilePathName")));
while(br.readLine()!= null)
    //do your stuff here
  }just put the above code into your servlet plus the relevant try,catch block. Put the blow info into your app's web.xml if you want this servlet loads once Tomcat starts.
<servlet>
<servlet-name>servletName</servlet-name>
<servlet-class>servletDir</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
Hope it helps.

Similar Messages

  • I have 2 ipods,one for music and the other for old time radio shows.Each had their own file.My computer crashed and I had to buy a new one.Now both ipod files are merged into one.How do I seperate them.

    I have 2 ipods,one for music and the other for old time radio shows.Each had their own file.My computer crashed and I had to buy a new one.Now both ipod files are merged into one.How do I seperate them on the computer?

    Hi Craig
    Unfortunately, in your case, there isn't really a way to separate them as far as I can think.
    You could try restoring from a backup, and choosing an older backup perhaps
    Cheers

  • Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up

    Photoshop Elements 11 installed on Mac Mini OS X 10.9.5. Application running successfully on bot main user and administrative accounts for considerable time with no warning messages. When established a new user account on same computer and try to call up elements receive message “Some ot the application components are missing from the Application directory. Please reinstall the application.” How do I correct this problem without disturbing application in main user account?

    Brooks lansing if you create a new Administrator account does the same issue occur?  If so then it is likely that there is a file permission failure and file permissions have been set for the existing Users instead of the groups they belong to.
    Have you removed and reinstalled Photoshop Elements 11?  This may reset the file permissions to the correct state to allow it to work under new accounts.

  • There is any way to speed up the shipment Dispatched?! I had been order it in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    There is any way to speed up the shipment Dispatched?! I had placing in order in the first of Oct. and the planing for shipment time announce to be between  3 to 4 Weeks Delivers  24 Oct, 2012 - 30 Oct, 2012

    No

  • Downloaded latest version on my laptop. Doesn't syn but only do recognize my iPhone 5 of 2012. Uninstall and re install for few times and it doesn't work at all! Can't back up data anymore. Please advise.

    Downloaded latest version on my laptop. Doesn't syn but only do recognize my iPhone 5 of 2012. Uninstall and re install for few times and it doesn't work at all! Can't back up data anymore. Please advise.

    Uninstall and re install for few times and it doesn't work at all!
    Are you (currently) getting an error message when you try to launch iTunes? If so, what does it say? (Precise text, please.)

  • SLOW download on Airport Extreme wifi.  WireThe download speeds are next to nothing above 25 feet away.  When i stand next to the AEB it is fine.  Anyone know why?  Doubt ill get another AEB, very unreliable and has been for some time.

    SLOW download on Airport Extreme wifi.  Wired is great.  The download speeds are next to nothing above 25 feet away.  When i stand next to the AEB it is fine.  Anyone know why?  Doubt ill get another AEB, very unreliable and has been for some time.

    No cordless phone (two iPhones and two iPads though).  It does have one or two walls on line of sight.  A few wireless door security zones.  And a large china cabinet that my wife sure wouldn't let me move.  Do any of these sound significant enough to drop the dowload from 30Gb to .1GB...while upload stays consistent.  I have had better signal strength through two walls 100 feet out from my house, havent tried recently though.  I am suddenly aware as my switch is acting up and i had to use wifi on my xbox.

  • Can I validate input parameters and throw a message to user that parameters are invalid?

    Post Author: ak004
    CA Forum: General
    Hi,
    I have a report that accepts input parameters. Can I do a front end validation for these parameters and throw a message to the user that the parameters are invalid? Will this work fin if I deply it in infoview?
    Thanks

    I think I posted this on the wrong forum, I will repost this in the proper forum

  • The importance of input parameters and output parameters

    hi all.
    kindly suggest me the importance of output and input parameters in smart forms.

    HI,
    INPUT parameter----
    > the varibales which already defined and defined and holds the data.
    OUTPUR parameter----
    > the variables which are not holding the values before executing the flow logic
                                                          after  executing flowlogic these will hold the values.
    Eg:
    in flow logic:
    input para                                             output para
    gv_val                                                    gv_val1.
    code:
    gv_val1 = gv_val + 1
    reward me if it is useful.
    thanks
    AM

  • Query to reterive the list of parameters and there values for scheduling

    I am develeoping a web application using java sdk want to reterive a parameter list for scheduling.
    i want a query that will reterive the list of parameters
    as we see on the parameters screen in CMC when we schedule the report.

                   // Loop through the parameters to get the parameter names and parameter values.
                            for(int i=1;i<=numberPrompts;i++)
                           // Each prompt has the name SI_PROMPT + a digit starting from 1.  For example, if
                           // there are 2 prompts, the first one would be called SI_PROMPT1 and the second
                           // one would be called SI_PROMPT2.
                       IProperties prompt = (IProperties)siPrompts.getProperty("SI_PROMPT"+i).getValue();
                           // Get the parameter name.
                       String promptName = prompt.getProperty("SI_NAME").getValue().toString();
                           // Start displaying a row.
                           out.println("<tr>");
                              // First column in the row is the parameter name.
                       out.println("<td>Parameter Name = "+promptName+"</td><td><table>");
                           // Get the current values property bag.
                       IProperties currentValues = (IProperties)prompt.getProperty("SI_CURRENT_VALUES").getValue();
                           // Get the number of values for this particular parameter.
                           int numberValues = ((Integer)currentValues.getProperty("SI_NUM_VALUES").getValue()).intValue();
                           // Loop through all of the values for this particular parameter.
                           for(int j=1;j<=numberValues;j++)
                               // Print out the values.
                            // Each value has the name SI_VALUE + a digit starting from 1.  For example, if
                            // there are two values, then the first value would be called SI_VALUE1 and the
                            // second value would be called SI_VALUE2.
                        IProperties currentValue = (IProperties)currentValues.getProperty("SI_VALUE"+j).getValue();
                            // Check for the existence of the "SI_MIN" and "SI_MAX" properties.
                            // If it exists, then display the value.
                            if (currentValue.getProperty("SI_MIN") != null && currentValue.getProperty("SI_MAX") != null)
                                     // The SI_MIN and SI_MAX properties exist.
                                if (currentValue.getProperty("SI_MIN").getValue() != null && currentValue.getProperty("SI_MAX").getValue() != null)
                                    // The properties have values.
                                 // Get the SI_MIN property bag.
                                 IProperties minRange = (IProperties)currentValue.getProperty("SI_MIN").getValue();
                                 // To store the minimum and maximum values.
                                 String minValue = "";
                                 String maxValue = "";
                                 // Get the SI_DATA property of the SI_MIN property bag.
                                 // First verify that SI_DATA exists.
                                 if (minRange.getProperty("SI_DATA") != null)
                                                // SI_DATA exists within SI_MIN
                                     if (minRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the minValue to this.
                                      minValue = minRange.getProperty("SI_DATA").getValue().toString();
                             // Get the SI_MAX property bag.
                             IProperties maxRange = (IProperties)currentValue.getProperty("SI_MAX").getValue();
                             // Get the SI_DATA property of the SI_MAX property bag.
                             // First verify that SI_DATA exists.
                                 if (maxRange.getProperty("SI_DATA") != null)
                                     // SI_DATA exists within SI_MAX
                                     if (maxRange.getProperty("SI_DATA").getValue() != null)
                                         // SI_DATA has value so set the maxValue to this.
                                      maxValue = maxRange.getProperty("SI_DATA").getValue().toString();
                             // Print out the Minimum and Maximum values for the parameter.
                             out.println("<tr><td>Range " + j + " Min Value " + minValue + " Max Value " + maxValue + "</td></tr>");
                                else
                                    // The SI_MAX and SI_MIN properties exist, but they don't have values.
                                 out.println("<tr><td>The SI_MIN and SI_MAX properties exist, but they don't have any values.</td></tr>");

  • Extrememusic for input (optical) and Onboard audio for output (HDMI). Can this be do

    I have a MB with onboard SPDIF for HDMI. When I install my extrememusic card it takes over and doesn't allow HDMI audio output anymore. But I want the extrememusic card for digital audio input (video capture) And the onboard audio for the SPDIFoutput (HDMI). Is there a way to use both the card and the onboard audio for these purposes?

    It's quite hard to advice without having the equal system in hands.
    Which one you have set to be as the preferred playback device and preferred recording device in system audio settings? Maybe onboard for playback and X-Fi for recording is maybe the way to go but, I can't say if this changes anything there?
    X-Fi also has Audio Creation Mode which is maybe the best for this type input connection ... use bit-matched mode if possible and ASIO.
    Depends on what you want to do there but, there are also some software you could use for to route signal from one card into other if this would be a sort of resolution (Virtual Audio Cable/Repeteater and Velbac comes into mind ... you should find links for these by searching this forum).
    jutapa

  • Minimum parameters and values required for 11g database

    Hi
    Can anyone please provide me with the list of parameters and the minimum value required for these parameters in 11g database (11.1.0.6.0).
    Thanks

    user8940828 wrote:
    Thanks for your help
    But this basic parameters did not mention the following parmeters . What can be the mimimum value that can be assigned to these parameters.
    dml_locks
    log_checkpoint_interval
    log_checkpoint_timeout
    open_cursors
    open_links
    parallel_max_servers
    processes
    session_cached_cursors
    session_max_open_files
    job_queue_processes
    log_buffer
    shared_pool_size
    sort_area_retained_size
    sort_area_size
    db_cache_size
    pga_aggregate_target
    ThanksI suggest you to start letting the default parameters and then tune them step-by-step.
    Eg:
    - open_links => If you dont have database links you can avoid to set it.
    - processes: number of backgroud processes + expected session/users for your application. if you have 1000 users connecting at the same time you would set a value higher than 1000.
    - shared_pool_size, db_cache_size, sort_area_size, pga_aggregate_target are not mandatory if you use automatic memory management by Oracle.
    - etc.

  • Can't open e-mails/long-time problem/can't delete just does NOT work right and hasn't for some time but today it just keeps loading and loading goes from "done" & I click on an e-mail/starts loading and transferring nothing is working

    I have always had trouble with e-mail. I have deleted cookies, etc. Checked connections. opened firewalls/closed firewalls. I have tried to go thru all the suggestions from Yahoo and Foxfire and this is the first time I have done this. E-mails are a real problem. On a system check, it says computer is working and other programs are working, JUST e-mail system.
    == This happened ==
    A few times a week
    == On and off for 2 months

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • On Time Delivey and reason coding for late

    Were on ECC 5.0 and looking at trying to link "reasons" for late delivery to the SAP shipment.  Has anyone done this or have any suggestions on ways to configure list of "reasons" and how to link them to the shipment number?   In 3.1i we had a way to do this with deadline funcitons and reason codes but it seems to have disappeared in 5.0.
    Tim

    Hi Tim,
    i think you could try "Additional Data" tab at the shipment header level. There are 4 reserve fields (VTTK-ADD01 to 04) along with the text fields you may use.
    Possible field entries can be maintained in spro>LE>transportation>shipments>maintain additional data.
    Pls post update then
    Thanks and regards,
    Zuzana

  • In the middle of undating to iTunes10.6.3 a window comes up saying an older version on bonjour cannot be removed.  Then further into the download a window comes up that says the download was interrupted and can not finish and try at a later time.

    I am attempting to upgrade to iTunes 10.6.3 and halfway through the download a window pops up that says "cannot remove an older version of Bonjour", then I click Ok on that and then further into the download and upgrade a window pops up that says cannot complete , itunes upgrade was interrupted, try at a later time.What do I do now?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Computer keeps Configuring and setting up for first time use

    I have a toshiba A505-S6980 that has been working fine for a couple years.  Recently I had performance issues and suspected virus, spyware so I did a recovery with the original discs I made when I first got the computer.  Four of the six discs reloaded fine.  It did not ask for the last two discs "Environment 64 bit and Applications and Drives.  I also have a System Repair disc.  After loading the four recovery discs the computer now keeps recycling between preparing for first time use, configuring system, reboot and then back to preparing for first time use,etc.  I think I'm close to getting this, but need a last bit of help.
    Thanks

    It's been a couple days since you posted this problem. Did you get anywhere, or are you still stuck in that loop? If it's still stuck, you may just want to perform the recovery again.
    - Peter

Maybe you are looking for

  • How to break page in SAP Script?

    Hi I am yatin . I want to create report of excise RG 23c part1. Program name : J_2IRCP1 T-Code : J2IRCP1 SAP SCRIPT IS : J_2IRG23C_PART1 I WANT TO GENERATE REPORT BASE ON MATERIAL TYPE AND MATERIAL NO. THIS REPORT IS GENERATED BASED ON SERIAL NO. ONE

  • Free Trial Error

    There was an error trying to download a free trial of Ps... Error said "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance." I tried downloading on a MacBook Air M

  • Are captions and tags in backup when reloading after a computer crash?

    I have Adobe photoshop 11. I have backed up my photos in an external hard drive and also on carbonite. If my computer crashes and I need to reload my photos back onto my computer will the captions and tags still be there? I was wondering because when

  • How on earth can I download the newest version of Flash Player on my Mac, OS X Yosemite?

    I have tried approximately 17 times to download Flash, but keep getting stuck at the login page. When I log in to Adobe.com using my ID and password, i'm able to sign in. But when i get to the download phase of the current version of Flash, I'm asked

  • Scaling in Report

    Hi Experts, I have a column whose scaling is supposed to be in millions, but among this column, it is required that one of the rows (this is a formula) should be in percentage and scaling factor of 1. I have tried to change the properties of the row