3 Replies Latest reply on Mar 22, 2007 12:00 PM by peterj

    Refreshing problem with Servlets in Linux

    aceofspades

      Hi,

      In my current project, I am having a Servlet that loads data to an Excel file, so that user can store on to his/her local machine.

      When the application is run, the Servlet executes first time, and the file is created with obtained data. After this whenever the operation is performed, the Servlet

      is not executed and the same data is retrieved; i.e. the data is not getting refreshed and user downloads old data each and every time.

      This is happening only in Linux system, in Windows this is working fine.

      Please Help.

      Regards,
      Gurinder Singh

        • 1. Re: Refreshing problem with Servlets in Linux
          peterj

          When you say the problem is on Linux but works fine on Windows, do you mean:

          a) If you deploy the servlet to a jboss as running on Windows, then when users access the data it works correctly, but when you deploy he servlet to jboss as running on Linux then when the users access the data they get the old data?

          b) When users running a browser on Windows access the data they get the correct data, but when users running a browser on Linux access the data they get old data?

          If the answer is (b), what browser if being used on each system? Also, if the Linux user hits the refresh button on the browser, does the correct data show up?

          • 2. Re: Refreshing problem with Servlets in Linux
            aceofspades

            Actually, the application is deployed on Linux system and is exposed as public IP. Using that public IP, I am running the application on my PC (Windows XP, IE 7.0).

            • 3. Re: Refreshing problem with Servlets in Linux
              peterj

              If I understand your new post correctly, the application is deployed to a JBoss App Server running on Linux, and you are using IE 7.0 on Windows to access the application.

              Are you saying that the problem always happens in this environment? Or that it always works correctly in this environment? If the problem always happens in this environment, in which environment do things work correctly?

              What is confusing me is your statement "This is happening only in Linux system, in Windows this is working fine".

              Anyway, I suspect browser caching is causing the problem. If you hit the refresh button does the updated spreadsheet show up? Have you tried Firefox?