comparison src/luan/tools/WebShell.java @ 73:f86e4f77ef32

add package module git-svn-id: https://luan-java.googlecode.com/svn/trunk@74 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 12 Feb 2013 09:46:45 +0000
parents 59431bb8d0bf
children 4bf3d0c0b6b9
comparison
equal deleted inserted replaced
72:cd9dbd7477ca 73:f86e4f77ef32
57 if( luan==null ) { 57 if( luan==null ) {
58 luan = newLuanState(); 58 luan = newLuanState();
59 session.putValue("luan",luan); 59 session.putValue("luan",luan);
60 } 60 }
61 luan.out = new PrintStream(history); 61 luan.out = new PrintStream(history);
62 luan.global().put("request",request); 62 luan.global.put("request",request);
63 luan.global().put("response",response); 63 luan.global.put("response",response);
64 Object[] result = eval(luan,cmd); 64 Object[] result = eval(luan,cmd);
65 if( result.length > 0 ) { 65 if( result.length > 0 ) {
66 for( int i=0; i<result.length; i++ ) { 66 for( int i=0; i<result.length; i++ ) {
67 if( i > 0 ) 67 if( i > 0 )
68 writer.write(" "); 68 writer.write(" ");