Spring Framework

Spring Projects

Spring Project 1

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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: