My Tomcat server always shows data from previous run !!

Hi
I have html form whose method is post and submit data to jsp .The JSP then process the input data , produce some images and place them in appropriate directory and uses <img src=.. > to show them in the browser. But I am always getting the images from previous run . If I refresh , then I get the right images. Its so annoying. Since I am the developer, I know that I am not getting the right image. But other users might think that my program has bugs.Well it might be a bug . Is there anything I can do in my application to prevent this? Pls help/suggest me. I am new to web Application.
Advance thanks!

I'm not saying to change the image file name... all I'm saying is write the image tag's source URL with a unique query string parameter (such as the current time).
If the image files are different names each time, there's not going to be any caching, so it shouldn't be a problem. If the image files are the same name each time (the image generator overwrites whatever is there already) then this is where the caching becomes a problem for the browser. So you don't need to do anything except what I already said, add ?x=timestamp to the image file name in the image source attribute. This doesn't change the image file name, it will still get the same image. It'll only prevent the browser from going to a cached image when the next time it loads, cuz the URL will be different.
As for Scottie's comments... the reason is so that the browser doesn't have to load the image from the server every time. It's generally expected that most content on the web is not changing, unless the server includes headers with the file that specify when the file expires. For most servers, you have to set up special general rules about setting expiration times (x hours/days/etc.) for it to use based on file type. With JSP, you can manipulate the headers in the JSP page, but this just applies to the page, not the images or other content in the page, which are separate browser requests.

Similar Messages

  • "write plot to jpeg" always stores data of previous run

    Please have a look at the vi attached below: Although I'm using a sequence, the output-jpeg file always contains the date (jpeg) from the PREVIOUS run of the program.
    What am I getting wrong here?
    Thanks for any answers!
    Attachments:
    plotsafePosted.vi ‏44 KB

    It works just fine here (LabVIEW 7.0).
    The jpeg always contains the data of the newest run and the file date is also correct.
    (Your VI is actually broken, so I added a few points manually).
    Please provide more details, e.g. are you calling this as a subVI? I doubt it would help, but you could also try to set the picture for synchronous display (right-click..advanced..synchronous display).
    LabVIEW Champion . Do more with less code and in less time .

  • Show data from sql server to oracle db

    Hi,
    I am using oracle 10g R1 on windows 2003 platform. On one machine database 10gR1 is running and on other machine sql server is running. I want to retrieve some data from sql server to oracle database. Please tell me how I can show data from sql server to oracle db.
    Thanks

    To make heterogeneous connection with oracle:
    1.First make an ODBC connection, make entry in System DSN(to create a data source)
    2.Make an entry in tnsnames.ora
    3.Make an entry in listener.ora under SID_LIST_LISTENER
    4.Make an entry in file named init<HS>.ora file located "oracle_base\oracle_home\db\hs\admin"
    5.Restart the listener
    e.g:
    1. create a odbc system dsn named like 'sqlserver'
    2. sqlserver= (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp) (HOST=xx.xx.xx.xx) (PORT=1521))
    (CONNECT_DATA = (SERVICE_NAME=sqlserver))
    (HS = OK)
    3. (SID_DESC = (SID_NAME = sqlserver) (ORACLE_HOME = oracle_base\oracle_home\db) (PROGRAM = hsodbc) )
    4.Create a file named initsqlserver.ora and make the following entry:
    HS_FDS_CONNECT_INFO = sqlserver
    Alternatively, you can copy the file named inithsodbc.ora and rename it to initsqlserver.ora
    and edit as HS_FDS_CONNECT_INFO = sqlserver
    5. lsnrctl reload listener_name
    regards
    adnan kaysar

  • LR is using meta data from previous edited photos on new imports

    LR is using meta data from previous edited photos on new imports-
    When I am importing new photos to a new catalog LightRoom gave all the photo settings that I had used on a previous catalogs photo I had to delete the catalog because I could not find an answer anywhere. Tried the deleteing and importing 3 times with same result.
    Once I did Start another new catalog and pressed reset on everything I could find it worked.
    What can I do if this happens again? Anybody know what setting that involves?

    On the right side of the Import screen, there's a heading "Apply during import". (If it doesn't show, right-click on the panel on the right and choose it from the menu.) One of its sub-fields is Metadata. That field and the Keywords field below it, I think are "sticky". You need to make sure that they contain the metadata that you want applied in your current import.
    It's almost always a bad idea to delete your catalogue or re-import images. Both those things fall at the very end of possible remedies because they cost you a lot of work, and there are almost always cheaper ways of solving your problem.
    Hal

  • WD ABAP iview for Adobe Forms showing data of previous PERNR

    Hi Experts,
    We have developed adobe forms using HCM P&F functionality. We copied standard delivered WD ABAP Iview "Termination" multiple times for the use in developed forms. The Portal IDs are attached to the employee's IT 0105-Subtype 0001 Syname.
    We added the parameters in iview:
    Application Parameter: GET_PERNR=X&PERNR_MEM_ID=ESS01&Process=ZXXX_XXX_FORM
    Problem:
    The Portal id is assigned to PERNR in IT 0105 - Subtype 0001 correctly and when we execute the Form Service link is clicked on Portal it shows the correct default data in Adobe form.
    But if we remove the Portal id from 1 PERNR and assigned to another PERNR then Adobe Form still shows the data from previous PERNR.
    We are unable to figure out the problem as the new Portal id is attached correctly and other WD Java iviews are showing correct data for existing PERNR but only Adobe forms are showing data from old PERNR assignment.
    Please advise.
    Sunny

    Hi Siddharth,
    We have already done a number of action to clear the cache such as:
    - Set the 2 properties of the iview
                 a. Cache Level ---> None
                 b. Cache Validity Period --->-1
    -  Cleared Portal Run Time Cache
    - Clear DB cache
    - UME cache (In case you are changing users frequently )- System Administration -> System Configuration -> UME Configuration -> Support -> Invalidate cluster wide cache
    - Clear the browser cache --> Most imp - Browser settings -> tools -> Internet Optionsu2026 -> Temporary Internet Files -> Delete Files.
    The actions are already done but the problem is still there.
    I read some blog on SAP INDX tabel which records the Portal IDs when user logged in and Iview Properties "PERNR_MEM_ID=ESS01" reads this table . I am not sure that if this is the problem.
    Please help.
    thanks
    Sunny

  • Don't show data from web service to Cross-Tab in xcelsius

    Hi all visitors
    I have created one web service and my web service will show data like this.
    Group ___Floor ____Amount
    Member__Floor 1__1000000
    Member__Floor 2__1000000
    Member__Floor 1__1000000
    Member__Floor 2__1000000
    Member__Floor 2__2200000
    Member__Floor 1__     1000000
    Member__Floor 1__     1000000
    In my xcelsius, i have option to make it to cross-tab.
    when i use that data( data above by manual) to excel spreadsheet. The data will change to
    Group______________Floor1________________Floor2______________GrandTotal
    Member____________5000000_____________ 3200000_____________8200000           
    GrandTotal__________5000000_____________ 3200000_____________8200000
    But when i load the data from web service,It doesn't show anything.
    (when i use list view to show data from web server, i see all data)
    How can i load data from web service and show the data like manually?
    Best Regards,

    Hi Tony,
    As per your example i have used the SUMIF fucntion
    have a glance at that and let me know if you need help
    Data coming from webservice >>     Concat     Group     Floor     Amount
                                              =C7&D7     Member     Floor1     1000000
                                              =C8&D8     Member     Floor2     1000000
                                              =C9&D9     Member     Floor1     1000000
                                              =C10&D10     Member     Floor2     1000000
                                               =C11&D11     Member     Floor2     2200000
                                               =C12&D12     Member     Floor1     1000000
                                              =C13&D13     Member     Floor1     1000000
    Cross Tab >>Group     Floor1                                                                    Floor2
          Member     =SUMIF($B$7:$B$13,$H$7&I6,$E$7:$E$13)     =SUMIF($B$7:$B$13,$H$7&J6,$E$7:$E$13)
         Grand Total     =SUM(I7)                                                                     =SUM(J7)
    Original data after
    Group     Floor1     Floor2
    Member     4,000,000     4,200,000
    Grand Total     4,000,000     4,200,000
    Hope this may solve your issue.
    Ley me know if you have any other issues.
    Regards,
    AnjaniKumar C.A.

  • PLD Report does not show data from Query

    Hello,
    SAP b1 9.0 PL08 on MSSQL 2008 and I get data on the query, but when the PLD prints, it shows nothing. Is there a way to filter the data that the PLD shows? Does PLD have its own SQL script it uses b/c its not showing data from the query.
    Thanks,
    Nick

    Hi Nicholas,
    Please check below links.
    query based print layout design
    Print Layout Designer \Custom Reports
    How to Make a Print Layout (PLD) Report from a SBO Query | SBOnotes.com
    http://www.tegrous.com/wp-content/uploads/2011/07/HowTo_QPrintLs_88.pdf
    Hope this help
    Regards::::
    Atul Chakraborty

  • How do I include/show data from a child table in a Modal Window?

    How do I show data from a child table in a Modal Window?
    I have an application where each customer might have multiple addresses and phone numbers which are stored in child tables.  When I show the customer in a record on a screen I can place a Modal Window button on the screen which can be pushed at runtime
    to display detail information for the particular customer parent table which works great. However, I would also like to display the data from the address and phone number child tables. Is there a way to do that?  Or can I just launch a hole separate screen
    which would automatically display the needed data for the particular customer? If yes, how? 
    Thank you for any help.

    I am not even sure how to describe my situation in such a way that this forum incident would be of benefit to other people as I think it is fairly unconventional. 
    The “add contactaddress” link does not show up on the right.  
    The contactaddress table is a child of the contact table. 
    The contact table is a child of the contactlink table.
    And the contactlink table is a child of the person table.
    I have it set up this way because the contact in the contact table may be a contact to multiple persons in the person table and I do not want to re-enter the contact info every time the contact is used. 
    In the list detail screen of the person table I can see the contactlink child collection so that I can see the name of the person in the contact table at runtime. However, the contactaddress collection is not related to the person table so it does not show
    up on the right hand side of the design screen as an “add contactaddress”; nor is there “add contact” link.
    What I would like to happen during runtime is that it is not necessary to switch screens from the person list detail screen to a contact list detail screen to see the addresses and phone numbers for the contact.
     Is my setup unnecessarily convoluted? Is there a better way? Please see the two snapshots below.
    Perhaps there is a way to call up a Detail screen from the List Detail at runtime? 
    Anyway, if you are still reading, thank you very much for your help.   
    jjjjj

  • How to update a table (CUSTOMER) on a Report Server with the data from the same table (CUSTOMER) from another server Transaction server?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) From another server ex: Transaction server?
    Set up steps so inset, update or delete operation takes place across the servers.
    It would be great if someone please enlighten me in details about this process in MS SQL Server 2008 R2.
    Also please describe would it be different for SQL Server 2012?
    If so, then what are the steps?

    I had an interview question that is:
    How to update a table (Customer) on a server ex: Report Server with the data from the same table (Customer) from another server ex: Transaction server?
    Set up steps so that inset, update or delete operation gets done correctly across servers.
    I was not sure about the answer, it would be great if someone please put some light on this and explain in details about this process in MS SQL Server 2008 R2.
    Also it would be very helpful if you please describe would it be different for SQL Server 2012? If so, then what are the steps?

  • TS4036 I added Icloud to join my calendar to another person. It erased all history date from previous months. how do I get that data back?

    I added Icloud to join my calendar on my phone to another person. It erased all history date from previous months. how do I get that data back?

    i found the answer to the first part: reboot and keep hold of command+r
    this gave me a list of options
    one of them was to reinstall lion from fresh
    i went for this
    dont know why... but all forum posts i read said u should delete hard disc? theres an option for this
    which is the right option?
    any suggesstion where i go to register new mac would be great
    thanks

  • Is it possible to show data from two different sql tables?

    Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
    I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
    Best regards Terje F - Norway

    Hi Terje,
    If you have a unique key, you could use one of the following functions for your scenarios:
    If you only have one image per house, you can use LookUp:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
    If you have multiple images per house, you can use Filter:
    http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
    Thanks
    Robin

  • A message saying I had to restore my iPad to factory settings came up, can I recover data from previous back-ups?

    Tonight, a message came up on iTunes came up saying I need to restore my iPad to factory settings came up. Is there any way I can avoid doing a factory restoration? If not, can I recover data from previous backups?

    If you got the message that you need to connect to iTunes, there is no choice now but to restore the iOS software. Yes, you can restore from a backup after you restore the iOS software.
    You can only restore now by connecting to your computer and using iTunes, and at the end of the restore process, you will be asked if you want to restore from your iTunes backup to which you will say yes and then sync your iPad as well. Syncing will transfer all of your apps, music, movie, books, photos etc, back to the device. If you do not backup and sync with iTunes, you can still restore from an iCloud backup after you restore the software in iTunes.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766

  • HT2155 when i try to install app and it prompts for password a apple id shows up from previous owner and i dont know password how do i switch it to my apple id?

    when i try to install app and it prompts for password a apple id shows up from previous owner and i dont know password how do i switch it to my apple id? ive restored the phone and my apple id is registered as mine on phone

    You don't. Apps are forever tied to the Apple ID used to originally obtain them & cannot be transferred to another Apple ID. You need to purchase the app using your ID.

  • TS4062 Why won't my outlook calendar show data from my iPhone calendar after synching.

    Why won't my outlook calendar show data from my iPhone calendar after synching?

    I have the same problem - between the issue I had with restoring after the upgrade (Error -48), the duplicate entries I now get between my Outlook appointments and iCloud, and the inability to have Events added from the iPhone sync to Outlook, I'm surprised there hasn't been more outcry about 5.0x! Not to mention the battery problem, which I HOPE they ironed out.

  • How does iCloud manage app data like whatsapp ? Does it overwrite the data everytime I backup to I cloud with the data on the phone or it merges the data from previous backups with the new data?

    How does iCloud manage app data( like whatsapp) ? Does it overwrite the data everytime I backup to I cloud with the data on the phone when i backup or it merges the data from previous backups with the new data?

    You need to subscribe to iTunes Match to store your music on iCloud:
    http://www.apple.com/itunes/itunes-match/
    To transfer iTunes Store purchases made on your phone to your computer, connect your phone then choose "Transfer purchases..." from the File menu in iTunes.
    Photostream transfers photos taken on your iOS devices to other devices and your computer. For troubleshooting Photostream see: http://support.apple.com/kb/TS3989

Maybe you are looking for

  • How to get rid of the "other" memory

    I need steps to find a way how to get rid of the "other" memory. Ive tried deleting my photos. But my memory is still low. My iphone 4 is a 8GB and still that isnt much, and to have this "other" memory take most of it up is making me mad. HELP PLEASE

  • Flashing in Windows Modes doesn't work

    I'm running Windows Vista Business, and when I try to update my BIOS in windows mode, it fails. I'm using MSI Live Monitor 3. After finding the bios (1.5), I use "windows mode" to flash. A command-line window comes up, and I can see everything gettin

  • Bean Not Found (Invalid Property name oracle.forms.webutil.clientinfo....)

    Hi All i have configured the WebUtil V:106 Jacob v:18 On My Middle Tire Application Server: V:9.0.4 Connecting To Database: V:8.1.7 "i did recreate the packages for 8i like dbms_lob and ...etc" my WebUtil Form Work's Fine as it displays me the versio

  • Metadata Consistency warnings error.....need help

    I'm getting this error when i run my reports. I checked in all my files and I'm not seeing any consistency warnings. Can someone tell me why and how i can fix this error? Odbc driver returned an error (SQLExecDirectW). Error Details Error Codes: OPR4

  • System Preferences crashes

    System Preferences crashes everytime I click on "Security", "Keyboard & Mouse", and "Sound". I got a Mighty Mouse for Christmas, and I need to change the settings of it. Everytime I click on "Keyboard & Mouse" it crashes. Can anybody help me? Thanks!