Author | Message |
---|---|
p0941
Posts: 95
|
Posted 16:53 May 13, 2010 |
When I use a redirect on ModelAndView, the url is always wrong and append on the previous one. Why doesn't the viewResolver work? Thanks |
cysun
Posts: 2935
|
Posted 17:00 May 13, 2010 |
Use / |
p0941
Posts: 95
|
Posted 17:40 May 13, 2010 |
I used "/". For example: In bean configuration: <bean name="/wiki/abc.html" In bean: ModelAndView("redirect: /wiki/abc.html" The url after the redirect: http://localhost:8080/csns/wiki/content/%20/wiki/abc.html, which is wrong. |
cysun
Posts: 2935
|
Posted 17:42 May 13, 2010 |
You have a space between "redirect:" and "/wiki/abc.html". |