Changeset 11012 for trunk/gsdl3


Ignore:
Timestamp:
2005-12-20T16:33:09+13:00 (18 years ago)
Author:
kjdon
Message:

when have a to att with comma separated list, need to make a new copy of the request each time, otherwise only the first one gets the request, the rest are empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r10615 r11012  
    268268        } else {
    269269        String [] modules = path.split(",");
    270         Element mess = this.doc.createElement(GSXML.MESSAGE_ELEM);
    271         Element copied_request = (Element)this.doc.importNode(req, true);
    272         mess.appendChild(copied_request);
    273270       
    274271        for (int j=0; j<modules.length; j++) {
     272            // why can't we do this outside the loop??
     273            Element mess = this.doc.createElement(GSXML.MESSAGE_ELEM);
     274            Element copied_request = (Element)this.doc.importNode(req, true);
     275            mess.appendChild(copied_request);
     276
    275277            String this_mod = modules[j];
    276278            // find the module to pass it on to
Note: See TracChangeset for help on using the changeset viewer.