I am trying to create a custom JSON view.
I have created a class implementing View and I was planning on writing the output in the render method.
The JSON should something like this:
The 'content' needs to come from a Tiles view.Code:"errors": "true/false", "content": "<p>Some html content<p>"
In the new view class I was creating (in the render method) I need to know how to return the rendered content of a TilesView as a String so I can append it to my JSON message.
Can someone please give me a few pointers?
thanksCode:@SuppressWarnings("unchecked") @Override public void render(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { // get the tiles view as a string TilesView view = new TilesView(); view.setUrl(tilesView); //view.render(model, request, response); }


Reply With Quote
