Status updates while servlet is running...

I have a servlet that launches a dozen different thread to process a bunch of network information. Now, these all work fine and I have a please wait page while they run (about 45 sec) but the users are getting ansy during this time and would like some feedback while the process are running.
I thought, no problem, I'll send a message back to the user when each process thread finishes. No such luck, I get one of two results with my attempt at coding this. First, the messages do not show until the main controlling servlet is finished and they are just thrown in at the top of the results page. Or, second, the messages all come up as they are suppose to but then the results page never displays.
What am I doing wrong? Thanks!
Ross

I set up a <DIV> tags on the request page that has the Please wait HTML in it. Then during the submit, I call some JavaScript that hides the first DIV section and displays the second. Bceause the DOM is not standard across browsers, hence why I want to have the servlet do this rather than my current method. I needed to write this JavaScript function so this would work in most browsers:
function PostandWait() {
    if(document.getElementById) {
        document.getElementById('main').style.display='none';
        document.getElementById('main').style.visibility='hidden';
        document.getElementById('banner').style.visibility='hidden';
        document.getElementById('wait').style.display='block';
    else if(document.layers) {
        document.layers["main"].visibility="hidden";
        document.layers["wait"].visibility="show";
    else if(document.all) {
        document.all["main"].style.visibility="hidden";
        document.all["wait"].style.visibility="visible";
    else {
    document.jobform.submit();
}//PostandWait

Similar Messages

  • How is it possible that my Imac says: no available updates while I am running 10.6.8??

    how is it possible that my Imac says: no available updates while I am running 10.6.8??

    McS1672 wrote:
    how is it possible that my Imac says: no available updates while I am running 10.6.8??
    This Usually means your Software is Up to Date...
    Were you looking for any Particular Update...?

  • How to make metadata changes stick when having made the mistake of updating while Match was running?

    I've painfully come to realize that much my tedious process to add composer to 4,000+ tracks where this was missing, was done while Match was running.
    I have a Time Machine backup of the library that contains the changes, but if I restore this, Match insists on downloading the old metadata (which means deleting the composer data). Is there any way to force Match to update the cloud data based on this backup of the library file?
    I really don't want to have to locate and add this data again...!

    For ringtones, iTunes > Preferences > General >Import Settings... button > choose Import using AAC encoder to enable Create AAC version from .m4a and mp3 files.

  • In App Store, ok to update while app is running?

    My general programmer instincts tell me that I should close an app before I update it from the web.  But when I'm about to update an app in the App Store, it never tells I need to close the app first.  What's the best procedure here?  How can iOS update an app that's open?  Thanks.

    I update my browsers all of the time while the app is open in the recents tray. I do not "close it" in the recents tray. However I have never tried to update the app and then go back to actively use it at the same time.
    My non programmer instincts tell me that I don't think that would work, but I have never tried to use the app and update it at the same time. Why take a chance and mess up the download.

  • Error While trying to run a servlet

    I am getting the below error while trying to run a servlet using tomcat.In this admin is a directory where I have a html file called admin.html which calls the servlet AdminServlet & replaces the url by /servlet/AdminServlet.
    HTTP Status 404 - /SPOT/admin/servlet/AdminServlet
    type Status report
    message /SPOT/admin/servlet/AdminServlet
    description The requested resource (/SPOT/admin/servlet/AdminServlet) is not available.
    For more details I am also copying the code from the admin.html file below.
    <script language=JavaScript>
    document.location.replace('../servlet/AdminServlet');
    </script>

    JavaScript != javareplace or redirect ??

  • Tomcat error while trying to run the servlet

    I am etting the below error while trying to run a servlet from tomcat server.
    HTTP Status 404 - /servlet/DailyStatusServlet
    type Status report
    message /servlet/DailyStatusServlet
    description The requested resource (/servlet/DailyStatusServlet) is not available.
    Can anyone help me in solving this error.

    rnaaz wrote:
    Can anyone help me in solving this error.Start by making sure you've properly mapped that URL in your deployment descriptor (web.xml file).
    ~

  • I just got v10.6, while trying to run the update, it's telling me that the file is corrupt and cannot be saved. What do I do?!

    I'm running Snow Leopard v 10.6 on a Macbook 4,1. I've got a 500 GB HD and 4GB of Ram. While trying to run the software update (to get me to 10.6.8, I think?) I keep getting an error message around 600 MB that says it's unable to be saved because the file might be corrupt and that it will try again when the software update is ran next time. Why am I getting this message? Is there a way to get the update (so I can eventually get to Lion), without going through the software update screen?
    I'm going crazy with this. I've tried 4 times now and still keep getting the same message.

    Try downloading the stand alone installer here:
    http://support.apple.com/kb/DL1399
    In Safari Preferences, General tab, set "Save downloaded files to: select destop, if it is not in thed rop down select other, then selcet Desktop from the left sidebar. After the download completes click on the installer package on your desktop and follow the prompts.
    Also if possible use an ethernet conection as it is less prone to interference, thus less prone to corruption, and usually faster.
    Hope this helps

  • Since the last update of Firefox I've a real problem. While Firefox is running or in use my Laptop total freezes. The resource tool stops and nothing works. I have to power off my laptop to get by this.

    Since the last update of Firefox I’ve a real problem. While Firefox is running or in use my Laptop total freezes. I was working a Word document and my laptop stops cold. The resource tool stops and nothing works. I have to power off my laptop to get around this. This has occurs numerous time and started after the last update to Firefox. I did install Skpe recently. My configuration is as follows:
    Forfox 10.0.2
    User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
    Windows 7 version 6.1 build 7600
    Processor p6100 64-bit
    Please help me it is very annoying

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • E1200 - CPU Locks Up While Trying to Run Updates

    I tried to install my new E1200 router last night, and ran into issues. Every time I try to run the installation CD, my CPU locks up while trying to run updates. Is there a way to bypass checking for updates while doing initial installation?

    If you are trying to install the Router with the help of the Cisco Connect Software and want to by pass the Router updates then there you will get an option " Update Now " or " Later "... So select " Later " then that will bypass the updates and will proceed further for the installation of the Cisco Connect....

  • Unable to run bapis for project status update and date update together

    Hi Experts,
    I have a requirement to update the dates and status of a project WBS at level 4. I am trying to do update the CJ02 Transaction using standard BAPI available. I need to do both Date update and status update in the same LOOP PASS   i am using the below mention bapi. when i am doing so i am getting an error Project 'A._____' has been currently processed by ID i.e. my id.
    I have tried putting  a wait for 2 seconds in the code but its still not working. please find the order below in which i am calling the bapi.
    Loop at itab.
    if  date_changed = 'X'.
          CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
          READ TABLE it_error WITH KEY message_type = c_e.
          IF sy-subrc <> 0.
    Commit
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                 EXPORTING
                      wait   = c_x
                 IMPORTING
                      return = s_ret.
       endif.
    endif.
    if Status_change = 'X'.
          CALL FUNCTION 'BAPI_PS_INITIALIZATION' .
          CALL FUNCTION 'BAPI_BUS2054_SET_STATUS'
          READ TABLE t_result WITH KEY message_type = c_e.
          IF sy-subrc NE 0.
            CALL FUNCTION 'BAPI_PS_PRECOMMIT'
                 TABLES
                      et_return = t_ret.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                 EXPORTING
                      wait   = c_x
                 IMPORTING
                      return = s_ret.
         ENDIF.
    endif.
        WAIT UP TO 4 SECONDS.
    endloop.

    Try to use
    SET UPDATE TASK LOCAL.
    before each BAPI call.
    Did you try to debug through your code, leaving sufficient time between BAPI calls? If it does work like that, then the above statement might help.

  • Status update for MeeGo on the N900

    Here's a copy of the text sent by Harri Hakulinen from Nokia. He is the project lead for MeeGo on the N900. This message was sent to the MeeGo developer mailing list just now:
    Hello MeeGos !
    This is brief status update of "MeeGo to N900" project. This project is currently running as Nokia project, and I am Nokia project lead for it. The current closed mode of development is not the target for us at all, but rather transitional condition. As already discussed by Valtteri in TSG meeting, we are looking into going more open mode shortly. One reason why we have done this on this way is that at the same time we have been trying to handle opening of many currenly closed components that are needed in MeeGo and to build feasible MeeGo images for N900.
    However, a lot of related work is already done completely open, you can find more info from places like ofono.org, connman.net and meego.gitorious.org . So if you are eager to contribute or want to closely follow whats happening, please work on those.
    As you know, we have delivered working MeeGo images for N900 as part of first code drop in the end of March. At that state we were using older kernel version on N900 than on Atom side, as we used the same kernel (.28) than what is used in Maemo 5 based products today. We ended up doing that simply because lack of time to contribute and port all the drivers to the newer kernels.
    Now, for the upcoming May release of MeeGo, we are going to use the same kernel version (.33) than Atom based devices are using. For that we need to submit number of ARM-architecture patches to MeeGo as well, because many of the required ones have just been contibuted upstream kernel and were not available in .33 version originally.
    We have already enabled most of the main drivers, like LCD, GFX, Wlan and BT. Still, there is a lot to do in order to enable .33 on N900, like audio drivers, and modem subsystem including SSI buss driver, modem data and audio drivers etc. Our adaptation guys are in fact contributing those modem subsystem related drivers as we speak, and if you are following kernel mailing lists you can see how that goes on.  
    Besides of enabling the new kernel, we are working with number of smaller and bigger issues for N900. Starting from the beginning, we are now based on ARMv7 combiled code, so the code should be better optimised for N900 now. ARMv5 compilation that was in use for code drop will still be there, and it also seems to be used at least by community project that is planning to release MeeGo for good old N810 tablets
    Also, we are planning to enable dual booting of Maemo 5 and MeeGo for the upcoming release. So that will be offered as 3rd way to setup MeeGo to N900, including the existing "native" MeeGo only on N900 and chroot based MeeGo on Maemo 5 setups. Taking the dual boot mode into use likely includes upgrade to Maemo5 kernel as well, but that should not be big issue in the process of enabling that.
    As I don't want to go ahead of others working on MeeGo architecture and other issues I will stop now, but I will report again when we have more to tell about the subject.
    Br,
    // Harri

    Here's another update..
    It seems that MeeGo on the N900 is not directly being driven by Nokia! It's an open project.. so the net result is MeeGo on the N900 may look and feel very different to Meego on the N900's sucessor
    Either way, I'm certainly greatful for their efforts!
    Hello Meego's,
    As indicated in my previous mail about "MeeGo for N900" status, we were planning to open up our MeeGo work around N900. Now I am happy to announce, that we are there
    First, to make it absolute clear for everybody: This is about open MeeGo adaptation to N900 device.
    Like any other MeeGo project, it is open source project for all applicaple purposes, and does NOT directly have links to any potential Nokia product or potential product plans. So, based on this or any other of my posts, please do NOT start or continue speculation of upcoming Nokia MeeGo releases. That is practically not helpfull, and mostly only takes our time when we need to explain our words and actions in detail to various directions. 
    From our part, we are trying to implement the open development model that has been discussed now so many times around MeeGo. On practical terms, we are trying to work based on proposal by Carsten Munk, see
    http://wiki.meego.com/Proposal_for_Best_Practices_for_working_in_a_MeeGo_team 
    We have already created some resources that will be used by the team, you can learn about those and the upcoming ones from http://wiki.meego.com/ARM/N900. We have IRC channel for realtime discussion, we will use meego-dev mailing list for normal discussions and announcements, and we will have Gitorius project for code.
    We will evolve our practicies during the work, so if you are interested, stay tuned to those channels. I belive that soon we are also able to figure out, what is best way for community members to help us in development, and then effectively be part of the team. 
    I would also like to use this as opportunity to introduce the team behind this work (so far) and also thank them about their hard work and long hours. We have team that consist of some Nokia subcontractors and also growing team of Nokia personel:
    "MeeGo for N900" team (so far)
    - Cybercom Turku team; Marko Saukko, Jouni Peltonen, Sami Sirkiä, Jari Smura and Luka Milovanov.
    - Cybercom Tampere team; Kalle Lampila,Teemu Tuominen,Tuukka Mäkinen and Ville Marjusaari.
    - Carsten Munk via Nomovok
    - Jarkko Nikula via Atomide
    - Jan-Simon Möller from Linuxfoundation
    - Nokia team; Alexander Kanevskiy, Felipe Contreras, Markus Lehtonen, Ameya Palande, Sakari Poussa, Roger Quadros and me.
    In addition to official project team, many Nokia people have helped us despite their hectic daily work, even with their free time. Most of them are driven by the desire to open, repurpose and upstream all relevant sw that has been originally created for Maemo 5 based N900 product during previous years.
    Marko, Jouni, Sami & Luka and Markus were working with me already on last year when we did prototypes and interoperability tests of Maemo & Moblin stuff combined in different ways. Based on those we had pretty good picture of what we are doing and why. 
    And of course, we have had very good and productive co-operation with various Intel teams since those times. Anas Nashif and many others from Intel's MeeGo team have done a lot for us by enabling ARM stuff in MeeGo OBS and repositories.
    Last but not least, I want to give special thanks to Stskeeps (alias Carsten Munk . He has teached us how to operate on open, and he has also done respectable amount of this work since early days of Meego. In addition to that, I belive that his earlier work on Maemo community and on Mer project has in fact inspired all of us and shown a way to MeeGo alredy years ago.
    Br,
    //Harri

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Error message for Adobe AIR 2.0.3 while trying to run Dreamweaver CS5

    imac 2.66 Ghz, Intel Core i5, OS 10.6.4.
    Error message for Adobe AIR 2.0.3 while trying to run Dreamweaver CS5:
    Adobe Air
    the installation of this app is damaged. Try re-installing or contacting the publisher for assistance.
    Tried several times to uninstall and reinstall from fresh download to no avail.
    I'm finding the instructions in the trouble shooting area a tad esoteric.
    Will there be an update to the installer released soon?

    Hi,
    I'm assuming your having troubles installing the 2.0.3 runtime?  If so, can you please try the instructions in this post?
    Thanks,
    Chris

  • "Submission status" error while posting comments using evcom

    Hi friends,
    I am  getting "Submission status" error while posting comments using evcom. This error comes up even when we use "post comments" option in Action Pane.
    The error text goes like this :
    Error Message -
    This cell can not be updated.  Submission status must be modified to allow changes.
         010_000|2009.TOTAL|INTERCO|NOPC
    How can we get rid of this error?

    That's means the status for that specific category, time entity is approved and you can not do any changes including
    comments chnages.
    You have to change first the work status for that entity and after that you will be able to submit your comments.
    Regards
    Sorin radulescu

  • Error on /SafeMode: error while trying to run project uncaught exception thrown by method called

    i try run VS 2012 with /SafeMode. I create new empty Winform. When I start debug, I got:
    "error while trying to run project uncaught exception thrown by method called through reflection"

    Hi Matanya Zac,
    Did you restart your machine? How about installing the VS2012 update 4?
    >>error while trying to run project uncaught exception thrown by method
    Did you install the VS update in your VS IDE? I met this issue before which was related to the VS update:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/5ead8ee9-ea09-4060-88b0-ee2e2044ff82/error-while-trying-to-run-a-project-uncaught-exception-thrown-by-method-called-through-reflection?forum=vsdebug
    If still no help, I suggest you repair your VS, and then restart your machine, test the result.
    Best Regards,
    Jack
    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.

Maybe you are looking for

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi, we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the d

  • Help!  Full Hard Drive

    Here's the setup: Macbook Pro 1 T Time Capsule Airport Express (for network printer) iMac (belongs to my daughter, I'd prefer not to have to put any of my files on her computer) Apple TV Basically, I use the Macbook as my own desktop-replacement comp

  • Request for Feature

    Woudl it be possible to have a feature in the Web Module to allow the user to add buttons to the generated website e.g Home, Galleries etc and allow these to be configurable as in the url and style.  This would better facilitate the integration of th

  • CS4 Missing Links Between Two Users

    Thanks in advance for any help. We've recently switched to a new InCopy workflow where we're hosting the assignment and links files in Dropbox. We've had no isses with our editors making edits in InCopy, but my co-designer and I are running into miss

  • How do I Fax from IOS device to landline

    How do I fax from my iPad or iPhone 4 to a landline?  Is there a charge?