Spring Framework

Spring Projects

Spring Project 1

adplus-dvertising
UrlFilenameViewController in Spring MVC
Previous Home Next

This controller provide the facility to transfer the filename at the end of a URL in to a view name and return view. it is also provide the facility to add prefix and append the suffix to the view namefrom the URL filename.

Syntax:

public class UrlFilenameViewController
extends AbstractUrlViewController

This controller provide the following method:

setPrefix:

public void setPrefix(String prefix); 

getPrefix:

public String getPrefix();

setSuffix:

public void setSuffix(String suffix); 

getSuffix:

public String getSuffix();

getViewNameForUrlPath:

protected String getViewNameForUrlPath(String urlPath);

extractViewNameFromUrlPath:

protected String extractViewNameFromUrlPath(String uri);

postProcessViewName:

protected String postProcessViewName(String viewName);

Example of UrlFilenameViewController in Spring MVC

Previous Home Next