tags:

views:

152

answers:

2
Q: 

Spring MVC

i have a SimpleFormController, the doSubmit() is doing nothing but populating a command object(call it bar, a simple POJO, and it have a field, say id). So, the successView is being called. the successView is "redirect:/foo.html", and the bean def for foo.html is: i have this bean mapped to a simple jsp, called foo.jsp. the jsp comes up fine. my issue is that i want foo.jsp to show ${bar.id}, it is not showing up. when i do not do a redirect, ${bar.id} shows up fine. what do i need to do to get it to work in a "redirect" situation?

+1  A: 

missing bean def:

<bean name="/foo.html"class=".....UrlFilenameViewController"/>
bmw0128
A: 

the difference is the difference between forwards and redirects

bmw0128