This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am using tiles view and json view for viewing purpose in spring framework 2.5.6. But in some application servers i am getting below error.
0000007b servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet corporateuser in application corpuser_2404_war. Exception created : javax.servlet.ServletException: No Tiles definition found for name 'jsonView'
Code to specify the json view:
xml configuration for json view:
Any one have any idea why this tiles error is coming since two views are configured properly.
Simply because you are passing the "String" in the ModelAndView that the ViewResolver uses to resolve the view. It is most likely being resolved by the Tiles Configurer/View Resolver and not by the File one in your configuration. Basically all view resolvers will get the string your return, and the first one to say something wins, so in your case the Tiles one gets it first.