code: static void init(ServletContext servletContext) {
  		String webPath = servletContext.getRealPath("/");
  		if (webPath == null) {
  			try {
  				// 支持 weblogic: http://www.jfinal.com/feedback/1994
  				webPath = servletContext.getResource("/").getPath();
  			} catch (java.net.MalformedURLException e) {
  				com.jfinal.kit.LogKit.error(e.getMessage(), e);
  			}
  		}
  		properties.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, webPath);
  		properties.setProperty(Velocity.ENCODING_DEFAULT, getEncoding()); 
  		properties.setProperty(Velocity.INPUT_ENCODING, getEncoding()); 
  		properties.setProperty(Velocity.OUTPUT_ENCODING, getEncoding());
  	}
docs: /*
  static {
  String webPath = RenderManager.me().getServletContext().getRealPath("/");
  
  Properties properties = new Properties();
  properties.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, webPath);
  properties.setProperty(Velocity.ENCODING_DEFAULT, encoding);
  properties.setProperty(Velocity.INPUT_ENCODING, encoding);
  properties.setProperty(Velocity.OUTPUT_ENCODING, encoding);
  
  Velocity.init(properties);	// Velocity.init("velocity.properties");	// setup
  }