Mercurial Hosting > luan
comparison src/luan/tools/WebShell.java @ 50:272b6f1d7dac
fix java accessibility
git-svn-id: https://luan-java.googlecode.com/svn/trunk@51 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 28 Dec 2012 19:48:43 +0000 |
parents | 8ede219cd111 |
children | 28dfd91a816c |
comparison
equal
deleted
inserted
replaced
49:8ede219cd111 | 50:272b6f1d7dac |
---|---|
46 throws ServletException, IOException | 46 throws ServletException, IOException |
47 { | 47 { |
48 PrintWriter out = response.getWriter(); | 48 PrintWriter out = response.getWriter(); |
49 HttpSession session = request.getSession(); | 49 HttpSession session = request.getSession(); |
50 | 50 |
51 ByteArrayOutputStream history = (ByteArrayOutputStream)session.getValue("history"); | 51 ByteArrayOutputStream history = (ByteArrayOutputStream)session.getValue("luan_history"); |
52 if( history==null ) { | 52 if( history==null ) { |
53 history = new ByteArrayOutputStream(); | 53 history = new ByteArrayOutputStream(); |
54 session.putValue("history",history); | 54 session.putValue("luan_history",history); |
55 } | 55 } |
56 | 56 |
57 if( request.getParameter("clear") != null ) { | 57 if( request.getParameter("clear") != null ) { |
58 history.reset(); | 58 history.reset(); |
59 } else { | 59 } else { |
80 writer.write("\r\n"); | 80 writer.write("\r\n"); |
81 } | 81 } |
82 } catch(LuanException e) { | 82 } catch(LuanException e) { |
83 logger.info("",e); | 83 logger.info("",e); |
84 writer.write( HtmlLib.encode(e.toString()) ); | 84 writer.write( HtmlLib.encode(e.toString()) ); |
85 writer.write("\r\n"); | |
85 } | 86 } |
86 writer.flush(); | 87 writer.flush(); |
87 } | 88 } |
88 } | 89 } |
89 | 90 |