Changeset 22135


Ignore:
Timestamp:
05/20/10 16:51:34 (11 years ago)
Author:
xiao
Message:

removed hard-code hack for serving flax page actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/GeneralAction.java

    r20292 r22135  
    2727    String uid = request.getAttribute(GSXML.USER_ID_ATT);
    2828
    29     //A shortcut action serving the flax web page requests
    30     if(request.getAttribute(GSXML.SUBACTION_ATT).equals(GSXML.FLAX_PAGE_GENERATION)
    31             && request.getAttribute(GSXML.TO_ATT).equals(GSXML.FLAX_PAGE_GENERATION)) {
    32         //
    33         Element mr_info_response = (Element) this.mr.process(message);
    34         Node flaxPageNode = (mr_info_response.getElementsByTagName(GSXML.FLAX_PAGE)).item(0);
    35         //logger.info(" raw page="+this.converter.getString(flaxPageNode));
    36         if(flaxPageNode != null){
    37             page_response.appendChild((Element)this.doc.importNode(flaxPageNode, true));
    38         }
    39         addSiteMetadata(result, lang, uid);
    40         return result;
    41     }
    42    
    4329    // get the param list
    4430    Element cgi_param_list = (Element)GSXML.getChildByTagName(request, GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER);
Note: See TracChangeset for help on using the changeset viewer.