Changeset 12021


Ignore:
Timestamp:
2006-07-06T09:46:25+12:00 (18 years ago)
Author:
shaoqun
Message:

added a method to handle post message

File:
1 edited

Legend:

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

    r11023 r12021  
    5959    String interface_name = config.getInitParameter(GSConstants.INTERFACE_NAME);
    6060    this.default_lang = config.getInitParameter(GSConstants.DEFAULT_LANG);
     61
    6162    if (library_name == null || interface_name ==null) {
    6263        // must have this
     
    179180    throws ServletException, IOException {
    180181   
     182       
    181183    HttpSession session = request.getSession(true);
    182     String uid = (String)session.getAttribute(GSXML.USER_ID_ATT);
     184        String uid = (String)session.getAttribute(GSXML.USER_ID_ATT);
    183185    if (uid ==null) {
    184186        uid = ""+getNextUserId();
     
    283285        response.setContentType("text/xml"); // for now use text
    284286    }
    285    
     287
     288    //GSXML.printXMLNode(xml_message); 
     289
    286290    Element xml_result = this.recept.process(xml_message);
    287291    encodeURLs(xml_result, response);
     
    330334    }
    331335
     336    public void doPost(HttpServletRequest request,
     337              HttpServletResponse response)
     338    throws ServletException, IOException {
     339    doGet(request,response);
     340
     341    }
    332342}
Note: See TracChangeset for help on using the changeset viewer.