Mercurial Hosting > luan
comparison src/luan/tools/WebShell.java @ 122:d00f41edbbd6
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@123 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 04 Jun 2014 06:15:47 +0000 |
parents | eacf6ce1b47d |
children | 0594c132888b |
comparison
equal
deleted
inserted
replaced
121:cba7ed3f06cc | 122:d00f41edbbd6 |
---|---|
58 LuanState luan = (LuanState)session.getValue("luan"); | 58 LuanState luan = (LuanState)session.getValue("luan"); |
59 if( luan==null ) { | 59 if( luan==null ) { |
60 luan = newLuanState(); | 60 luan = newLuanState(); |
61 session.putValue("luan",luan); | 61 session.putValue("luan",luan); |
62 } | 62 } |
63 luan.set( "Io.stdout", IoLib.writer(new PrintStream(history)) ); | 63 luan.set( "Io.stdout", IoLib.textWriter(new PrintStream(history)) ); |
64 LuanTable env = luan.global(); | 64 LuanTable env = luan.global(); |
65 env.put("request",request); | 65 env.put("request",request); |
66 env.put("response",response); | 66 env.put("response",response); |
67 Object[] result = eval(luan,cmd); | 67 Object[] result = eval(luan,cmd); |
68 if( result.length > 0 ) { | 68 if( result.length > 0 ) { |