Mx:tree not updating dynamically

Hi
I am trying to simulate a directory structure through a tree
representation. I use a cfdirectory call through a RemoteObject and
attach the result to an XML object which then becomes the tree
dataprovider. The first time the tree opens fine with all directory
nodes. Each time I chose a directory to fetch the underlying
subfolders the tree component becomes messy as if the tree does not
refresh dynamically.
I am doing something wrong. Any ideas would be very welcome.
var mytree_struct:XML;
private function buildtree ():void {
for (var i:int = 0; i < aResult.length; i++) {
var newnode:XML = new XML();
newnode = <directory label={aResult.getItemAt(i).Name}
isBranch="true"> </directory>;
mytree_struct=mytree_struct.appendChild(newnode);
My tree event handler which should add new nodes (
subfolders) of the selected folder. For the moment I am just trying
it out with a test variable k.toString().
public function treeChanged(event:Event):void {
for (var k:int =0; k <10;k++ ) {
var newnode:XML = new XML();
var temp1:String = k.toString();
newnode = <subdirectory label= {temp1}
isBranch="true"> </subdirectory>;
event.currentTarget.selectedItem.appendChild(newnode);
}

in italian
http://www.augitaly.com/flexgala/index.php?cmd=newsreader&id=129
http://www.augitaly.com/flexgala/index.php?cmd=newsreader&id=123

Similar Messages

  • Smart Playlist's not updating dynamically

    Hi,
    There seems to be a little glitch in the smart playlists (SPL) on my touch 2G. I used to manually manage the music on my device and I noticed no issue with the SPL's being dynamic. However I started syncing the music recently and I observed that the SPLs wouldn't update dynamically on the device.
    For example, I have a SPL called Unrated that contains random songs that are not rated by me yet. When I rate them on the device, I expect them to disappear from the Unrated SPL, which is not happening (used to happen when i was manually managing music).
    Am I missing something? Please help!
    Thanks - iDeer

    Dynamic update of smart playlists when playing music untethered on an iPod touch 2G set to manually manage music is broken with the latest iPhone 3.0 Software Update for iPod touch. Here we go again on this issue. It seems to be broken or purposefully disabled on every other update for the iPod.
    On a side note, I noticed that my iPod now occasionally displays a wait screen when opening Music. I found this happens when I alter my playlists in iTunes.app, then disconnect the iPod for a session of untethered listening. Perhaps the iPod is actually building the smart playlists then, perhaps not, perhaps a smart developer will take advantage of this to trigger the smart playlist updating.

  • Smart Album Not Updating Dynamically

    I recently upgraded to iPhoto 11.  My Smart Albums now no longer update dynamically.  For example, I have a smart album that contains the last 3 months of photos.  It does not update after I import photos from my camera.  I have to manaully edit the settings for the smart album and click ok.  I don't change the settings, just edit and click ok.
    Why aren't the smart albums dynamically updating?

    Dynamic update of smart playlists when playing music untethered on an iPod touch 2G set to manually manage music is broken with the latest iPhone 3.0 Software Update for iPod touch. Here we go again on this issue. It seems to be broken or purposefully disabled on every other update for the iPod.
    On a side note, I noticed that my iPod now occasionally displays a wait screen when opening Music. I found this happens when I alter my playlists in iTunes.app, then disconnect the iPod for a session of untethered listening. Perhaps the iPod is actually building the smart playlists then, perhaps not, perhaps a smart developer will take advantage of this to trigger the smart playlist updating.

  • Shared Photo Streams Not Updating?

    About a week ago I realized my shared photo streams were not updating. I am not recieving any new photos that my friends are posting, and when I upload new photos they don't go to any of my friends' devices. How can I fix this problem?
    Thanks!

    I have had the same problem - Shared Photo Streams (evidently) do not update dynamically. There is also no button to force an update in the photo app either.
    On your iDevice by going into Settings > Photos & Camera and switching off "Shared Photo Streams".  Go into your Photo app and check that they have been removed.
    Now go back into the same Settings sub-menu and re-enable "Shared Photo Streams".  Back in the Photo app, you will see the shared stream update with the correct photos.
    I have the exact same problem with any shared photo streams I create on my iPhone - they do not appear on my iPad unless I do the above.  The same goes for iPhoto/Aperture on my Mac.

  • Adapter engine nodes(In RWB)  for CCMS tree are not updated

    Hi Experts,
    We are implementing CCMS monitoring on XI-700 SP12.But when we are trying to check monitoring node for runtime work bench (alert categories and Rules) its not updated in ccms tree and not collecting updated data.Can you please help us on this.
    Thanks and Regards
    Suveer

    Have you checked the Audit log in Runtime Workbench? Using it, you could come to know which module of the receiver channel went in error. Are you doing some user mapping or is it a standard one? The problem could be related to the undeployed mapping or mismatch in the format.
    Regards,
    Prateek

  • Employee Search in Dynamic Navigation does not update other iViews (FPM)

    Hi all,
    after selecting a person from Employee Search (MSS) we have to display corresponding data in a customer specific iView with help of selected person number.
    So I created a Floorplan Manager Application as described in https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29&
    If I use the SAP content page or create my own pages with corresponding Employee Search and customer specific iView, updating of data on the customer specific iView works. But if I add the Employee Search to Dynamic Navigation, the data is not updated in the customer specific iView.
    I didn´t find a solution in this forum. Does anybody know, if it is possible to add the Employee Search as Dynamic Navigation (with help of Floorplan Manager functionality) and update data in other iViews and how this works? Or is it possible to handle this in a different way, e.g. PortalEventing?
    Thanks,
    Thomas

    Hi,
    I also tried to use only iViews of 'General Information'  and added the employee search (team viewer) of the sap
    content page 'General Information' to the dynamic navigation, but the other SAP standard iViews of 'General Information' page are not updated, too.
    Does anybody know, if it is possible to add the employee search to dynamic navigation and to update the other iViews of 'General Information'? If yes, what properties have to be set? Are some settings for Floorplan Manager
    needed?
    Could anybody please give me a hint?
    Thanks,
    Thomas

  • DNS replicating but not being dynamically updated by other DCs

    Background on setup:
    Our campus runs BIND for the DNS solution
    Campus servers do not allow for dynamic updates of the root zone (school.university.edu), but are set to allow dynamic updates of the AD-related zones (_msdcs, _sites, _tcp, _udp, DomainDnsZones, ForestDnsZones)
    We run Active Directory (2008R2/2012R2 Mixed Mode) with DNS
    Our DCs are all listed in the NS tab of our zones, but are not truly authoritative...campus BIND servers are
    We only have the default zones setup in our DNS, all allow for Dynamic updates (Secure Only)
    DNS zones are ADI and replicate to all DNS servers in the domain (All 6 DCs are DNS servers)
    Clients do not register with our DNS, they use the campus BIND servers.  Only AD domain controllers are registered in our zones and allowed to dynamically update
    Once upon a time, this setup worked without an issue.  Dynamic updates worked without an issue within our ADI zones, as well in the campus BIND servers.  When we started to add the new 2012R2 domain controllers into the mix, we noticed that this
    was no longer the case.  Since we don't often add or remove DCs from our setup, we do not know exactly when this broke.
    The issue is that our campus BIND DNS servers show all of the appropriate DNS records flawlessly.  We manually requested entries at the root (looks fine) and all AD zones updated dynamically with all expected records.  Our AD DNS servers on the
    other hand have a fair number of incorrect and missing records.  The only one of the three new servers to have records in our AD DNS is the server we moved all of our FSMO roles to before our technician noticed the DNS issues.  The other two have
    no records dynamically generated in our AD DNS zones.  We pulled one of the old 2008R2 DCs out of the domain using dcpromo since it had some other issues.  As expected, it pulled all of its records out of campus BIND cleanly but left all of its records
    in our AD DNS.
    If we manually add/remove an entry (PTR, CNAME, A, SRV), the change replicates appropriately across the domain.  However, we do not want to put a Band-Aid fix on this and manually enter all of the records.  We want to figure out why these two servers
    are not pushing their records into AD DNS despite updating them flawlessly in campus BIND servers.
    DNS is not my forte, so I'd welcome any advice on what I can as my best next steps.  I have played around a lot with modifying DNS servers listed in the DC network settings, and register this connection.  We can confirm that replication seems to
    be working fine.  We can manually add records.  DNS shows no errors in event log.  When using dcdiag dns test, it shows that we have missing records in our DNS but no other issues are displayed.  NSLOOKUP reveals campus DNS to be correct. 
    Any assistance would be appreciated...even if just to point me to a better tool for diagnostics.  We have not yet tried reinstalling DNS on any of the DCs and wish to avoid that if possible.

    Greg:
    Thank you for taking the time to respond.  I believe I have found a pseudo-solution earlier this week, but I find myself slightly confused by the solution.  On our network connections for the DCs, we had been making the BIND servers the primary
    and secondary DNS servers, then each of our DCs point to two of the other DCs for their tertiary and quaternary DNS servers.  Since the BIND servers have all of the correct records, we flipped those to make the DCs our primary and secondary before BIND
    servers.  This got all of the records into our AD correctly.
    It was my understanding that if you checked the "Register this connection in DNS" checkbox that it would register itself in all of the DNS servers in the list, but based off the above it seems it only registers in the first DNS server it successfully connects
    to; assuming it expects that primary server to replicate the records to others.  If this new assumption is true, then I am trying to figure out how I am supposed to get my DCs to dynamically update both AD-DNS and BIND when I make changes.  This
    may be best suited in another thread, so I'll gladly break it out into another if needed.  I do not have control over the BIND DNS servers, except for the fact that my DCs are allowed to dynamically update the AD subzones.  I have full control over
    my AD-DNS, but my clients computers are required to point to BIND for their DNS.

  • Dynamic Web template not updating

    I am using EW4 and have created a dynamic web template. Some of the pages of the site have all of the updates but some don't. I am not changing any of the layout, text or graphics it is just the links. When I preview the pages  some of them show all
    the links but some show none. 
    I am on a different computer than the one I created the new pages on.
    I have tried to "save all pages"
    I have saved the template pages. 
    I have searched this forum and hit the"recalculate links" button and also "maintain site using hidden meta file" button but it is still not updating. 
    Any ideas?
    Thanks

    My point was that in 99.999999% of the cases (approximately), the problem is user error (or a user-caused problem, such as non-standard workflow), but the first solution people go to is to blame the software and uninstall and re-install it.
    And even if, in the very, very, very rare case that an installation is corrupt (when was the last time you had commercial software become corrupted?), simply uninstalling and reinstalling usually doesn't fix the problem, because corrupted files are
    left on the hard drive during the uninstall process. They remain there and cause the same problems after reinstall that they caused initially. Without doing a thorough clearing of all old files and Registry entries, the new install is plagued by the same problems.
    As Scott has noted, we have had exactly one documented report in this forum in all these years of a reinstall of EW fixing a problem.
    Again--the overwhelming majority of problems are caused by people who do not know how to use the program properly and who should be looking inward for the solution rather than outward.
    A horse walks into a bar. The bartender asks "Why the long face?" "Because I was born into servitude and when I die my hooves will be used to make glue." It was at this point that the bartender realized he would not be getting a tip.

  • DYNP_VALUES_UPDATE not Updating the Field on my Dynpro

    Hi.
    I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite for this number.. .he shall be able to work with the rest of the dynpro.
    Therefore I called the function that does the calcuiation like that:
    MODULE user_command_0100 INPUT.
      DATA: lv_guid_16 TYPE guid_16.
      IF kna1-kunnr IS NOT INITIAL AND kna1-kunnr <> gv_kunnr
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_16 = lv_guid_16.
        gv_taskid = lv_guid_16+8(8).
        CALL FUNCTION 'YDETERMINE_DEPOTDISTANCE' 
          STARTING NEW TASK gv_taskid
          PERFORMING receive_depent ON END OF TASK
          EXPORTING
            i_kunnr = kna1-kunnr.
      ENDIF.
    ENDMODULE. 
    The next piece of code shall get the returning value if the function wants to return its results.
    FORM receive_depent USING i_task TYPE clike.
      TABLES: d020s.
      DATA: dyname LIKE d020s-prog,
            dynumb LIKE d020s-dnum.
      DATA: BEGIN OF dynpfields OCCURS 1.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF dynpfields.
      IF i_task = gv_taskid.
        RECEIVE RESULTS FROM FUNCTION 'YDETERMINE_DEPOTDISTANCE'
        IMPORTING
          e_depent         = kna1-yydepent
          e_accuracy       = gv_accuracy.
        MOVE 'KNA1-YYDEPENT' TO dynpfields-fieldname.
        MOVE kna1-yydepent TO dynpfields-fieldvalue.
        APPEND dynpfields.
        dyname = sy-cprog.
        dynumb = '0100'.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = dyname
            dynumb               = dynumb
          TABLES
            dynpfields           = dynpfields
          EXCEPTIONS
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        ASSERT sy-subrc = 0.
      ENDIF.
    Problem is: The DYNP_VALUES_UPDATE does not update the field on my dynpro at all. If I hit enter another time, then the field is provided by the value as another PBO will be processed. What is my mistake here?
    Regards
    Manfred
    Edited by: Rob Burbank on Oct 29, 2010 12:07 PM

    Hi Manfred,
    Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
    SET USER-COMMAND 'xxx'.
    While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
    Hope this helps you!
    Cheers, Roel

  • Smart playlists no longer update dynamically

    I have several smart playlists that have a couple of rules... one based on rating and one based on whether or not it is present in a regular playlist.  When I change the rating of a song so that it no longer meets the smart playlist's criteria, it remains in the list.  It will not update until I sync with the PC.  The other criteria, the "regular" playlist, isn't updated... and is present on the iPod as well in my iTunes library, so that's not the issue.  I'm running the latest greatest version of iTunes and the iPod touch is a model PD721LL/A, version 8.2; it has over 15GB free, so space isn't a challenge either.
    I suspect that there is some sequence of settings that will allow this to update dynamically, but I'm not sure what that would be or where to even attempt it. 
    Any suggestions would be greatly appreciated!
    Thanks in advance,
    Laura Tieri

    My results differ from yours.
    With iOS 4.0x, 4.1 and 4.2x my smart playlists with live updating were broken. It would start with track 1 of 5, then 2 of 4, then 3 of 3, 4 of 2, then would generally crash the iPod app. If I left the playlist and re-entered it would have removed the entries already played, but I would find that some of the entries that should have played had actually been skipped in m playlist.
    With iOS 4.3, my playlists are properly working for me again. Now they play 1 of 5, 2 of 5, 3 of 5, ... If I return to the playlist while it is playing, I see that the entries that have already played are removed, and if I leave the playlist to return later, it starts over a 1 of 2, 2 of 2...
    I have posted another thread of how I have my playlists defined, so perhaps that would help you. I do recall that there were some conditions that used to cause problems if used in a smart playlist.

  • Current Status report not updating

    Over the past few months I have been getting more and more problems where the "Current Status" indication is wrong.  Usually I can get the "Current Status" back to being accure by going to File/Refresh.  In the past when something changed the status, like a restart taking the system off line for a few seconds, the current status would update back to Available once the remote computer completed its reboot.  Now however there is about an equal chanve that the status indicated in ARD will or will not update automatically when the status changes.  If the status remains at ARD Not Available or Sleeping or something else ARD will not control that system till I manually do a refresh and then initiate the new action.
    This is more of an irritant than a major problem but it sure would be nice if I could get ARD back to correcting and updating the indicated status correctly.  This is with the 3.5.1 ARD Admin software.  Any Ideas?

    A few things I would suggest you do to determine where the problem lies.
    1) Create an Essbase pull sheet in Excel that mimics the form and verify you see the data in Essbase -- you should see it just after your form is saved.
    2) Compare the dimensions on your report with those on the Form. I would guess your report has an upper level member that is not dynamically calculated -- if this is true then if you really want the report to show the exact data as the form then update the report appropriately.
    Good Luck,
    -John

  • Item category is set as Credit active - but credit master is not updated

    Dear Gurus,
    I am having an item category to which the credit active indicator is checked.
    For my sales document type - we have set Automatic credit check (Static/Dynamic).
    But, if I create a sale order with this item category - it is not updating the credit master sheet.
    Whereas, if I change the credit check control settings assigned to sales documents type to SIMPLE CREDIT CHECK - it is updating the credit master sheet.
    Could you please let know - why the system is not updating the credit master sheet if the AUTOMATIC CREDIT CHECK is set to the sales document type?
    Please clarify.
    Thank you,
    Venkatesh

    Hi
    Kindly check the below
    1.Check the risk category  in the t coded FD32
    2. Check the t code OVA8 for the combination of credit control area risk category credit groupo
    3. check the sub total "A" maintained against the condition type in the pricing procedure
    4. check the  tcode OVAD
    Regards
    Damu

  • Smart playlists not updating without syncing

    I've had the 30GB video for over a year. All the latest iTunes software and Vista OS. I probably have over 100 playlists of both kinds (static and "smart"). Some time in the past few months (maybe a year), the smart playlists stopped updating dynamically without a sync. I've been an ipod freak for over 3 years and I own a shuffle, nano, and a very old paper weight.
    Simple playlist:
    Playlist IS "static playlist name"
    Last played IS NOT in the last 1 day
    Songs should drop off after they play. They don't. I've scanned the web for a real answer and haven't found anything helpful.
    Please help me before I start doing crazy things like backing everything up, removing all my playlists, and starting all over!
    Life started when the ipod was born    

    I have a smart playlist of podcasts syced to my iPod Touch that has worked with iOS 3 and works with iOS 4, using the settings described here: http://bit.ly/c9GoOF . The key is to check "Live updating". Once the podcast finishes playing it drops off the playlist as expected.
    I had the "bright" idea of also including a playlist identical to the first but with "Live updating" not checked (see http://bit.ly/922a2L ). I did this so that I had a playlist containing the already-played podcasts in case I wanted to go back to listen to them again.
    The trouble is that this playlist doesn;t sync properly with iTunes. The only fix I found was to sync twice: Sync once, right-click, edit the Smart playlist, make no changes and press OK, and sync a second time.
    Has anybody seen this behavior?

  • OLEDB data not updating

    I have several drop-down lists that I want to pull data from a MySQL database on a server. I have set up data sources to use a system DSN (using mysql-odbc 3.51?) and a SQL query. The drop-down lists are using dynamic properties for the list items. The from was created in LiveCycle Designer 8.
    The form works fine in LiveCycle's preview mode. If I open the form in Reader 8, the lists are populated. However, if I change the items in the database and reopen the form in Reader, the items do not reflect the database change. Furthermore, when I opened the form in Reader on a computer without the DSN, it happily showed the original data. i.e. it seems that Reader is never trying to read from the database.
    If I reopen the form in Livecycle Designer and preview the form, the changes made in the database are present. If I save the form, the changes are reflected in Reader, but further changes are not.
    In summary, LiveCycle Designer seems to be updating data from the database in its preview, but Reader is only showing the data that was there when last saved in LiveCycle Designer (some sort of cacheing?) and not updating from the database.
    I guess the question is obvious - how do I make the form such the Reader always gets its data from the database (and gives some error if database unavailable)?

    I believe OLEDB access is only available through Acrobat, not Reader.
    When you save a form in Acrobat with a value in a field, that value is saved as the default value in the form regardless of whether or not it can access the database. That's why you're seeing the data in Reader.

  • WebServer does not update parameter and looses objects

    - Please struggle through my loooong explanation - THANKS
    Hi all,
    I've got a problem with my servlets/JSPs.
    I try to build a homepage where the content is displayed dynamically and the start-page is for each link the same.
    The content of the pages are stored in HTMLs and XMLs --> the HTMLs contain the static content and also contains identifier for the XMLs which contain the dynamic content. Problem is, that there can be more than one XML. So I've cretaed a properties-file which maps 1-HTML to n-XMLs. So I've generated code which parses (with SAX) through the XMLs and takes the information and stores these information to an object. This object itself is stored with an ID in a hashmap.
    Then I go through the HTML (read in a String) and replace the keys (HTML) with the matching value from the Hashmap.
    When a page is displayed and the client clicks on a link the same page should be called with parameter http://..../start?lang=de&page=link then I should get the information and the HTML for the "link".
    - When I call the "start"-page the first time it is displayed correct. But when I refresh the page it seems as if an object is lost - the information of the Hashmap (which is stored in another object) is lost. I cannot get the information although I got the information before.
    Also the parameters are not updated if I change them, there is always the same exception shown, that the key is not available.
    I've also changed the parameters (for lang) and just displayed them. But they did not change...
    - I'm absolutely helpless
    here the servlet:
    import java.io.*;
    import java.util.HashMap;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class Start extends HttpServlet {
         private String mPathOfPropertiesFile=IConstants.PROPERTIES_ROOT;
         private String mLanguage;
         private String mIdentifier;
         private String mHtmlAsString;
    //class created on my own reads the XML-file and stores all files in a Collection
         private PropertiesXmlReader vXmlPropertiesForIdentifier;
         private HashMap vMapOfFilenames;
         private HashMap vTransUnitId;
         //cretaed on my own. Parses the Collection of XMLfiles and puts necessary information on the FileDisc as Hashmap
    private XmlPageParser vParseXmls;
         private FileDesc vFileDesc;
    * Implements the HTTP GET method.
    * @param request the request object, containing
    * data from the browser
    * @param repsonse the response object to send
    * data to the browser
    public void Service (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException{
              mLanguage = request.getParameter("lang");
              if (mLanguage == null){
                   mLanguage = "";
              mIdentifier = request.getParameter("page");
              if (mIdentifier == null){
                   mIdentifier = "";
                   try {
                        // get the relevant Filenames from the Parser
                        vXmlPropertiesForIdentifier = new PropertiesXmlReader(
                                  mPathOfPropertiesFile, mLanguage, mIdentifier);
                        // get Filenames
                        vMapOfFilenames = vXmlPropertiesForIdentifier
                                  .getFielnames();
                        // parse all XML-Files found in the Properties
                        vParseXmls = new XmlPageParser(vMapOfFilenames);
                        vFileDesc = vParseXmls.getDesv();
                        vTransUnitId = vFileDesc.getMTransUnit();
                        FileReader reader = null;
                        int c;
                        File file = new File(IConstants.HTML_ROOT + mIdentifier);
                        try {
                             // cretae new StringBuffer and read content of the File to the
                             // StringBuffer
                             StringBuffer vHtmlFileBuffer = new StringBuffer();
                             reader = new FileReader(file);
                             while ((c = reader.read()) != -1) {
                                  vHtmlFileBuffer.append((char) c);
                             // cretae String to modify
                             String vHtmlAsString = vHtmlFileBuffer.toString();
                             // if not available (-1) = returnvalue
                             boolean vNoMoreReplacements = false;
                             while (!vNoMoreReplacements) {
                                  int indexOfStart = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_START);
                                  int indexOfEnd = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_END);
                                  if (indexOfEnd != -1 && indexOfStart != -1) {
                                       String key = vHtmlAsString.substring(indexOfStart + 3,
                                                 indexOfEnd);
                                       TransUnit testUnit = vFileDesc.getTransUnitById(key);
                                       vHtmlAsString = vHtmlAsString.replaceAll(IConstants.HTML_COMMENT_START + key
                                                 + IConstants.HTML_COMMENT_END, testUnit.getMSource());
                                  } else {
                                       vNoMoreReplacements = true;
                             mHtmlAsString = vHtmlAsString;
                        } catch (FileNotFoundException fileNotFound) {
                             mHtmlAsString = "The HTML-file could not be found, please control root:" + IConstants.HTML_ROOT;
                        } catch (IOException ioErr) {
                             mHtmlAsString = "Exception during output: " + ioErr.getMessage();
                        } finally {
                             if (reader != null) {
                                  try {
                                       reader.close();
                                  } catch (IOException e) {
                                       e.printStackTrace();
                   } catch (Exception e) {
                        mHtmlAsString = "Unexpected exception with text: " + e.getMessage();
              // Returns a writer to write to the browser
         PrintWriter out = response.getWriter();
         // Writes the string to the browser.
         out.print(mHtmlAsString);
         out.close();
    Hopefully someone can help me out.
    by the way - I'm using a Resin WebbApp Vers 3.0.17
    Thanks for help, in advance,
    brgds, Steffen

    Since you didn't post the XML parser class, I'm not sure exactly what your problem is but I see lots of things that should be changed.
    First of all, get rid of the empty Service() method. Fortunately, you named it wrong so it isn't overriding the service() method in the HttpServlet class. If it were overriding the service() method, your servlet wouldn't even work the first time since there would be nothing to invoke doGet().
    You shouldn't be using instance variables for processing requests (i.e. mLanguage, mIdentifier) because your servlet needs to be thread-safe. Essentially, there is usually one instance of your servlet around (this is up to the application server) and that one instance must be capable of handling multiple requests simalteously. This isn't causing your problem right now because you are just testing but once the application goes live, this will be a big problem.
    Now for what might be causing your problem. Since you didn't post the XML parsers, I suspect that they might be leaving the files open so the second time through, it can't do the parsing. Anyway, your design isn't right because you seem to be reparsing the XML files for each request. All servlets can have an init() method which is invoked when the application server first loads the servlet. You should do all your XML parsing in the init() method. This is much more efficient since it will only be done once (usually when the application server first starts up) not each time the user requests a page. The only potential drawback to this is if you frequently add new XML files, you will have to recycle the server to get the servlet to pick up the new files.

Maybe you are looking for

  • Sony Bravia KDL 40Z5100

    I was wonder if best buy offers the KDL40Z5100?  I see the larger models, am I missing it somewhere? jdh

  • EAS Startup issue after OEPM 11 Installation and Configuration

    Hi All, EAS server is not starting up after the successfull installation and configuration of OEPM 11.1.1.2 Provider Services and Shared Services started fine and i was able to login to Shared Services console During eas startup individually from the

  • URL history from browser

    I would like to set up a web page that displays a list of URL links- a bookmarks or favorites page that you can access anywhere. When you're on a web page that you want to bookmark, I would like to go directly to my bookmark page by clicking on it fr

  • Displaying XML news to country specific users

    Hi All,           I have a requirement that to display the xml news to country specific users (i.e If a user is from India he can see the news based on india.If a user is from UnitedStates he can see the news based on US).All the news should maintain

  • EZVPN Router to PIX - vpn tunnel fails after xauth

    I'm trying to configure a 1721 router to connect to a PIX at the office, essentially putting the router in place of a software VPN client. I can connect to the PIX with both a software VPN client and a hardware VPN 3002, but whenever I try to configu