This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to use net.sf.json.spring.web.servlet.view.JsonView as my default view. I read out some code examples on the net though was not able to understand how Spring identifies to which view it should forward the control to ?
As per my understanding net.sf.json.spring.web.servlet.view.JsonView is used if we want to convert model to JSON . net.sf.json.spring.web.servlet.view.JsonView will convert the model to JSON automatically and will forward it to the same view from where request came from . Though If I hit the controller from page X.jsp , convert the datamodel to JSON and now wish to forward this JSON to Y.jsp how spring will handle this using net.sf.json.spring.web.servlet.view.JsonView? Is it the restriction that JSON data will be forwarded ONLY to the view from which it came from if we use net.sf.json.spring.web.servlet.view.JsonView ?
Any link, white paper will greatly be appriciated.
Thanks a lot for the reply. I do understand the points which you mentioned in your last post and that really helped to clarify the concept. Though if I go for any other kind of view, I will loose all the out of the box JSON conversion made by jsonView.
Thats the reason I was looking out for any option that could make me free from JSON conversion part as well as allow me to forward the response to some other view.