Redirect to show ModelAndView from another Controller - (Spring 3 MVC, Hibernate 3)???

Posted by Mimi on Stack Overflow See other posts from Stack Overflow or by Mimi
Published on 2010-06-11T14:49:17Z Indexed on 2010/06/11 14:52 UTC
Read the original article Hit count: 515

Filed under:

How exactly can I trigger display of a model and view from another model and view’s controller?

[B][COLOR="Blue"]HTTP Request View --> HttpRequestController POST -> new HttpResponse POJO and a string of the POJO in XML as an Http Response msg to be sent back to the Requestor -->[/COLOR][/B] [B][COLOR="Red"][/COLOR][/B]

I have HttpRequestController() to handle a POST message with data from an input Form and populated an HttpRequest POJO with it. An HttpResponse POJO is composed and persisted along with the HttpRequest to a Db.

I made this HttResponse POJO an XML string as the @Responsebody to be sent back by the HttpRequestController() (as an actual HTTP Response message with header and body) and I want to present this HttpResponse POJO in a View.

I tried different things, none worked and I could not find a similar example anywhere.

© Stack Overflow or respective owner

Related posts about spring