Spring MVC question.# Java - 爪哇娇娃
g*g
1 楼
Used to use Struts, and here's a question for Spring MVC.
After submit a form successfully, I want to return to
main menu which should be a link like main.html (map .html to spring
controllers).
Now the question is, with InternalResourceViewResolver as ViewResolver,
prefix and suffix specified, /WEB-INF/jsp/ and .jsp respective,
how do you do the redirect?
Do I have to write a dummy jsp page which forwards to main.html?
After submit a form successfully, I want to return to
main menu which should be a link like main.html (map .html to spring
controllers).
Now the question is, with InternalResourceViewResolver as ViewResolver,
prefix and suffix specified, /WEB-INF/jsp/ and .jsp respective,
how do you do the redirect?
Do I have to write a dummy jsp page which forwards to main.html?