Revision 221
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
216 | 216 |
//out.println("<P>Caught exception looking for Y value."); |
217 | 217 |
} |
218 | 218 |
|
219 |
/* |
|
220 |
// Jivka added |
|
219 |
// Jivka added |
|
221 | 220 |
// handle login action |
222 | 221 |
if (action.equals("Login")) { |
223 |
handleLoginAction(out, params, request, response); |
|
222 |
out.println("here is Login"); |
|
223 |
//handleLoginAction(out, params, request, response); |
|
224 | 224 |
// handle logout action |
225 | 225 |
} else if (action.equals("Logout")) { |
226 | 226 |
HttpSession sess = request.getSession(false); |
... | ... | |
229 | 229 |
response.sendRedirect("/xmltodb/lib/login.html"); |
230 | 230 |
} |
231 | 231 |
// aware of session expiration on every request |
232 |
} else { |
|
233 |
HttpSession sess = request.getSession(false); |
|
234 |
if (sess == null) { |
|
235 |
out.println("Session expired. " + |
|
236 |
"You will be redirected to Login page again."); |
|
237 |
response.sendRedirect("/xmltodb/lib/login.html"); |
|
238 |
} |
|
232 |
// } else {
|
|
233 |
// HttpSession sess = request.getSession(false);
|
|
234 |
// if (sess == null) {
|
|
235 |
// out.println("Session expired. " +
|
|
236 |
// "You will be redirected to Login page again.");
|
|
237 |
// response.sendRedirect("/xmltodb/lib/login.html");
|
|
238 |
// }
|
|
239 | 239 |
} |
240 | 240 |
// End of Jivka added |
241 |
*/ |
|
242 | 241 |
|
243 | 242 |
if (action.equals("query") || action.equals("squery")) { |
244 | 243 |
handleQueryAction(out, params, response); |
... | ... | |
643 | 642 |
|
644 | 643 |
/** |
645 | 644 |
* '$Log$ |
645 |
* 'Revision 1.36 2000/06/28 02:36:26 jones |
|
646 |
* 'Added feature to now ouput COMMENTs and PIs when the document is |
|
647 |
* 'read from the database with DBReader. |
|
648 |
* ' |
|
646 | 649 |
* 'Revision 1.35 2000/06/28 00:00:47 bojilova |
647 | 650 |
* 'changed to |
648 | 651 |
* 'response.sendRedirect(response.encodeRedirectUrl("/xmltodb/lib/index.html")); |
Also available in: Unified diff
testing