Spring MVC SimpleFormController
I have a SimpleFormController , doSubmit () does nothing but populate the command object (call it, just a POJO and it has a field like id). So the successView process gets called. successView is "redirect: /foo.html" and the def bean for foo.html:
I have this bean mapped to a simple jsp called foo.jsp. jsp is fine. my problem is that I want foo.jsp to display ${bar.id}
, it is not displayed. when i don't redirect it is ${bar.id}
displayed ok. what do I need to do to make it work in a "redirect" situation?
0
source to share