Spring Framework FreeMarkerView - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework FreeMarkerView class.

This code example shows how to use the following methods:
 * 支持jsp标签,Application、Session、Request、RequestParameters属性 
 *  
 * @author liufang 
 *  
 */ 
public class RichFreeMarkerView extends FreeMarkerView { 
	/** 
	 * 部署路径属性名称 
	 */ 
	public static final String CONTEXT_PATH = "base"; 
 
	/** 
	 * 在model中增加部署路径base,方便处理部署路径问题。 
	 */ 
	@SuppressWarnings("unchecked") 
	protected void exposeHelpers(Map model, HttpServletRequest request) 
			throws Exception { 
		super.exposeHelpers(model, request); 
		model.put(CONTEXT_PATH, request.getContextPath()); 
	} 
5
CodeRank
This code example shows how to use the following methods:
 * in order to determine which attributes to render from the current view. 
 * </p> 
 *  
 * @author Dave Syer 
 */ 
public class AjaxFreeMarkerView extends FreeMarkerView { 
 
	/** 
	 * Parameter name for the list of fragments top render (value is comma-delimited list). 
	 */ 
	private static final String FRAGMENTS_PARAM = "fragments"; 
 
	/** 
	 * The accept header value that signifies an Ajax request. 
	 */ 
	private static final String AJAX_ACCEPT_CONTENT_TYPE = "text/html;type=ajax"; 
 
	/** 
	 * Alternate request parameter to indicate an Ajax request for cases when control of the header is not available. 
	 */ 
3
CodeRank
See Code Examples for Spring Framework FreeMarkerView Methods: