Navigating between pages via hrcfs in a tiles view
I'm in the process of converting a struts based tiles app to Spring MVC.
Say I have a tile definition that contains a header, and 3 details pages. THe header contains 3 tabs, and on each tab you can click it to go to one of the 3 detail pages.In the struts/tiles application each tab just has an hrcf link to one of the details pages, e.g.
lt;ligt;lt;a =quot;summary.jspquot; target=quot;tabIframequot; accesskey=quot;1quot; gt;Summarylt;/agt;lt;/ligt;
lt;ligt;lt;a hrcf=quot;address.jspquot; target=quot;tabIframequot; accesskey=quot;2quot; gt;Addresslt;/agt;lt;/ligt;
The JSPs are within WEB-INF.
How do I get Spring MVC to work so that clicking on a tab links to another JSP in part of the tiles definition ? One of the issues I guess I will have is that I have an internal view resolver set up for Tiles, how can I get this to cope with JSP's within Tiles definitions as well ?lt;bean id=quot;viewResolverquot;
class=quot;org..web.servlet.view.Intern alResourceViewResolverquot;gt;
lt;property name=quot;requestContextAttributequot; value=quot;requestContextquot;gt;lt;/propertygt;
lt;property name=quot;viewClassquot; value=quot;org..web.servlet.view.tiles. TilesViewquot;gt;lt;/propertygt;lt;/beangt;
Originally Posted by Paul NewportI'm in the process of converting a struts based tiles app to Spring MVC.
I've worked out how to do this via a design change, so sorry about the spurious post. |