Map<Object, Object> data = new HashMap<Object, Object>();
for (Enumeration<String> attrs = request.getAttributeNames(); attrs.hasMoreElements(); ) {
String attrName = attrs.nextElement();
, request.getAttribute(attrName));
}
String html = RenderManager.me().getEngine.getTemplate(view).renderToString(data);
说明: view 就是渲染的模板名字,可以使xml或则html等等
request 就是通过jfinal中 controller 层 getRequest() 可以获取而来