Spring Framework JstlView - 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 JstlView class.

This code example shows how to use the following methods:setApplicationContext
	// internal helpers 
 
	private View getViewInternal(String viewPath, RequestContext context, ApplicationContext flowContext) {
		if (viewPath.endsWith(".jsp") || viewPath.endsWith(".jspx")) {
			if (JSTL_PRESENT) {
				JstlView view = new JstlView(viewPath);
				view.setApplicationContext(flowContext);
				return view;
			} else { 
				InternalResourceView view = new InternalResourceView(viewPath);
				view.setApplicationContext(flowContext);
				return view;
			} 
		} else { 
			throw new IllegalArgumentException("Unsupported view type " + viewPath
					+ " only types supported by this FlowViewResolver implementation are [.jsp] and [.jspx]"); 
		} 
	} 
} 
5
CodeRank
This code example shows how to use the following methods:
 * 添加对于JavassContentNegotiatingViewResolver.java 的content-type支持 
 * @author Zhang lin 
 * 
 * @version 1.0, 2010-8-18 
 */ 
public class JavassJstlView extends JstlView { 
     
    @Override 
    protected void exposeHelpers(HttpServletRequest request) throws Exception { 
        super.exposeHelpers(request); 
    } 
     
} 
5
CodeRank
This code example shows how to use the following methods:exposeHelpers, setServletContext
        this.page = page; 
    } 
 
    @Override 
    protected void exposeHelpers(HttpServletRequest request) throws Exception { 
        setServletContext(request.getServletContext()); 
        super.exposeHelpers(request); 
        request.setAttribute("teacher$actual$page", "/teacher/" + page + ".jsp"); 
    } 
 
    @Override 
    public String getUrl() { 
        return "/teacher/executionCourse/executionCourseFrame.jsp"; 
    } 
 
} 
5
CodeRank
This code example shows how to use the following methods:
        ExampleViewResolver() { 
            super(); 
        } 
 
        public View resolveViewName(String viewName, Locale locale) throws Exception {
            return new JstlView("testUrl");
        } 
    } 
 
    static class NullViewResolver implements ViewResolver {
        NullViewResolver() { 
            super(); 
        } 
 
        public View resolveViewName(String viewName, Locale locale) throws Exception {
            return null; 
        } 
    } 
 
    @Override 
4
CodeRank
See Code Examples for Spring Framework JstlView Methods: