This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Can we use mvc:view-controller tag for displaying a tiles view.
Eg:If we have a tiles definition of the form <definition name="userLogon.page" template="webapp/app/layout/baseLayoutExterior.jsp" extends="basePageDefinition">
Can we write <mvc:view-controller path="/logon" view-name="userLogon.page"/> in our servlet.xml file.
I am getting an HTTP 404 RESOURCE NOT FOUND ERROR on this whereas a normal hello.jsp page is displayed without problems.
2. All you need is make sure you have tiles definitions + dispatcher-servlet.xml configured correctly.
Joined: Mar 30, 2013
Hey thanks paul.One more thing,how can I configure a bean in dispatcher-servlet.xml so that it resolves both tiles views as well as jsp views.We have tilesViewResolver and tilesConfigurer for tiles whereas UrlBasedViewResolver for simple mapping to jsps. Could I combine these two into one bean.