我刚看freeMarker,有一点不懂,
在mvc中,freeMarker主要做表现的,下面一句是什么意思????(红色的)
Configuration cfg=null;
cfg=new Configuration();
[color=red] cfg.setServletContextForTemplateLoading(getServletContext(),"templates/");[/color]
我想是给他一个template的路径就可以了。那前面的servletContext是干什么的啊???是用来获取Web应用的路径的吗????