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

This code example shows how to use the following methods:setApplicationContext
			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
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
	private static LifecycleFactory lifecycleFactory; 
 
	private String extension; 
	 
	public HtmlView() { 
		super(); 
		setExtension(DEFAULT_EXTENSION); 
	} 
 
	public String getExtension() { 
		return extension; 
	} 
 
	public void setExtension(String extension) { 
		this.extension = extension; 
	} 
	 
	protected boolean isUrlRequired() { 
		return false; 
	} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
            ICalendarFormatter formatter = new ICalendarFormatter();
            model.addAttribute("iCalendar", formatter.format(event));
 
            return new InternalResourceView("/WEB-INF/views-other/icalendar.jsp");
        } else { 
            return new InternalResourceView("/WEB-INF/views/404.jsp");
        } 
	} 
 
    private void prepareModel(ModelMap model, List<Event> events) {
        model.addAttribute("events", events);
        model.addAttribute("contentSourceStatistics", new ContentSourceStatistics(events).getStatistics());
        addCommonAttributes(model);
        setPageTitle(model, "Events");
    } 
 
} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: