UrlFilenameViewController()
Simple Controller implementation that transforms the virtual path of a URL into a view name and returns that view.
Can optionally prepend a prefix and/or append a suffix to build the viewname from the URL filename.
Find some examples below:
"/index" -> "index""/index.html" -> "index""/index.html" + prefix "pre_" and suffix "_suf" -> "pre_index_suf""/products/view.html" -> "products/view"Thanks to David Barri for suggesting prefix/suffix support!
Author
Alef Arendsen
Author
Juergen Hoeller
Author
Rob Harrop
See Also
#setPrefix#setSuffix