Project

General

Profile

« Previous | Next » 

Revision 219

Added feature to now ouput COMMENTs and PIs when the document is
read from the database with DBReader.

View differences:

MetaCatServlet.java
215 215
    } catch (Exception npe) {
216 216
      //out.println("<P>Caught exception looking for Y value.");
217 217
    }
218

  
219
/*
218 220
// Jivka added
219 221
    // handle login action
220 222
    if (action.equals("Login")) {
......
230 232
    } else {    
231 233
      HttpSession sess = request.getSession(false);
232 234
      if (sess == null) { 
233
        out.println("Session expired. You will be redirected to Login page again.");
235
        out.println("Session expired. " +
236
                    "You will be redirected to Login page again.");
234 237
        response.sendRedirect("/xmltodb/lib/login.html"); 
235 238
      }
236 239
    }    
237 240
// End of Jivka added
241
*/
242

  
238 243
    if (action.equals("query") || action.equals("squery")) {
239 244
      handleQueryAction(out, params, response);
240 245
    } else if (action.equals("getdocument")) {
......
266 271
   * Handle the Login request. Create a new session object.
267 272
   * Make a user authentication through SRB RMI Connection.
268 273
   */
274
/*
269 275
  private void handleLoginAction(PrintWriter out, Hashtable params, 
270 276
               HttpServletRequest request, HttpServletResponse response) {
271 277
    String un = (String)params.get("username");
......
275 281
    try { 
276 282
        if (sess.userAuth(pw)) {
277 283
            try {
278
                response.sendRedirect(response.encodeRedirectUrl("/xmltodb/lib/index.html"));
284
                response.sendRedirect(
285
                    response.encodeRedirectUrl("/xmltodb/lib/index.html"));
279 286
            } catch ( java.io.IOException ioe) {
280 287
                sess.disconnect();            
281 288
                out.println("MetaCatServlet.handleLoginAction() - " +
......
288 295
            out.println("SRB Connection failed. " +
289 296
                        "SRB RMI Server is not running now or " +
290 297
                        "user " + un + 
291
                        " has not been authenticated to use the system");
298
                        " has not been authenticated to use the system.");
292 299
        }    
293 300
    } catch ( java.rmi.RemoteException re) {
294 301
            sess.disconnect();            
295 302
            out.println("SRB Connection failed. " + re.getMessage());
296 303
    }        
297 304
  }
305
*/
306

  
298 307
  /** 
299 308
   * Handle the database query request and return a result set, possibly
300 309
   * transformed from XML into HTML
......
634 643

  
635 644
/**
636 645
 * '$Log$
646
 * 'Revision 1.35  2000/06/28 00:00:47  bojilova
647
 * 'changed to
648
 * 'response.sendRedirect(response.encodeRedirectUrl("/xmltodb/lib/index.html"));
649
 * '
637 650
 * 'Revision 1.33  2000/06/27 04:50:33  jones
638 651
 * 'Updated javadoc documentation.
639 652
 * '

Also available in: Unified diff