Mercurial Hosting > luan
changeset 94:c6633e5f0cc5
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@95 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 08 Mar 2013 06:13:00 +0000 |
parents | 2079455459ac |
children | 9aa7d5f20333 |
files | src/luan/lib/HttpLib.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/lib/HttpLib.java Thu Mar 07 23:34:32 2013 +0000 +++ b/src/luan/lib/HttpLib.java Fri Mar 08 06:13:00 2013 +0000 @@ -62,6 +62,7 @@ module.put("response",resp); req.put( "get_attribute", new LuanJavaFunction(HttpServletRequest.class.getMethod("getAttribute",String.class),request) ); + req.put( "set_attribute", new LuanJavaFunction(HttpServletRequest.class.getMethod("setAttribute",String.class,Object.class),request) ); req.put( "get_parameter", new LuanJavaFunction(HttpServletRequest.class.getMethod("getParameter",String.class),request) ); req.put( "get_parameter_values", new LuanJavaFunction(HttpServletRequest.class.getMethod("getParameterValues",String.class),request) ); req.put( "get_header", new LuanJavaFunction(HttpServletRequest.class.getMethod("getHeader",String.class),request) );