File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Using simple Tiles redirection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Using simple Tiles redirection" Watch "Using simple Tiles redirection" New topic
Author

Using simple Tiles redirection

Elie Hirschman
Ranch Hand

Joined: Dec 15, 2005
Posts: 37
This was a bit of a stumper until one of us found a solution:

The problem: Want to set up a link to a plain ol� JSP page within a framework which uses Tiles and Spring. But how much effort do we need to expend to create this seemingly simple link?

The Solution: use UrlFilenameViewController as a �default controller� which will simply forward on to the appropriately named Tiles definition.

The Implementation: We have a jsp called prlsite_tool.jsp, to which we wish to link from our page menu.jsp. First, set up a Tiles definition for this jsp page:

Next, in the Spring config, enable a default controller instance:

Now, add a URL matching pattern which will catch the link to the new page:

Now, any links to �/admin/somethingsomething.spring� will be forwarded to a somethingsomething.jsp under the /admin path� which is exactly what we want! Last step is to put in the link on the menu page:
 
 
subject: Using simple Tiles redirection
 
Threads others viewed
Not able to render view in Spring 2.5 with Tiles2
Spring MVC Integration of Tiles Complete Example
Problems while Configuring Tiles in Spring MVC
Spring controller mapping
Struts Validation in Spring Context
developer file tools