Revision 230
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
280 | 280 |
MetaCatSession sess = new MetaCatSession(request, un, pw); |
281 | 281 |
//try { |
282 | 282 |
//if (sess.userAuth(pw)) { |
283 |
// try {
|
|
284 |
// response.sendRedirect(
|
|
285 |
// response.encodeRedirectUrl("/xmltodb/lib/index.html"));
|
|
286 |
// } catch ( java.io.IOException ioe) {
|
|
287 |
// sess.disconnect();
|
|
288 |
// out.println("MetaCatServlet.handleLoginAction() - " +
|
|
289 |
// "Error on redirect of HttpServletResponse: " +
|
|
290 |
// ioe.getMessage());
|
|
291 |
// }
|
|
283 |
try { |
|
284 |
response.sendRedirect( |
|
285 |
response.encodeRedirectUrl("/xmltodb/lib/index.html")); |
|
286 |
} catch ( java.io.IOException ioe) { |
|
287 |
sess.disconnect(); |
|
288 |
out.println("MetaCatServlet.handleLoginAction() - " + |
|
289 |
"Error on redirect of HttpServletResponse: " + |
|
290 |
ioe.getMessage()); |
|
291 |
} |
|
292 | 292 |
|
293 | 293 |
// } else { |
294 | 294 |
// sess.disconnect(); |
Also available in: Unified diff
testing login