Ignore:
Timestamp:
2003-07-18T15:59:26+12:00 (21 years ago)
Author:
kjdon
Message:

service params are now namespaced to avoid conflict with same named action params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/ProcessAction.java

    r4694 r4981  
    5858        Element mr_query_message = doc_.createElement(GSXML.MESSAGE_ELEM);
    5959        String request_type_att;
    60         Element param_list;
     60        Element param_list = null;
    6161        if (request_type.equals("s")) { // status
    6262        request_type_att = GSXML.REQUEST_TYPE_STATUS;
     
    6868        } else {
    6969        request_type_att = GSXML.REQUEST_TYPE_PROCESS;
    70         // add in the params - except the ones only used by the action
    71         param_list = getServiceParamList(cgi_param_list);
     70        // add in the service params - except the ones only used by the action
     71        HashMap service_params = (HashMap)params.get("s1");
     72        if (service_params != null) {
     73            param_list = GSXML.createParameterList(doc_, service_params);
     74        }
    7275       
    7376        }
    7477        Element mr_query_request = GSXML.createBasicRequest(doc_, request_type_att, to, lang);
    75         mr_query_request.appendChild(param_list);
     78        if (param_list != null) {
     79        mr_query_request.appendChild(param_list);
     80        }
    7681        mr_query_message.appendChild(mr_query_request);
    7782       
Note: See TracChangeset for help on using the changeset viewer.