這樣肯定是沒有問題的,你可以貼出具體代碼來看看。
redirect:/XXX 這個XXX是你controler中某個方法的requestmapping,如下:
1
2
3
4
|
@RequestMapping
(
"/notice"
)
public
String _notice() {
return
"common/notice"
;
}
|
比如要actionforward到這個方法的話,就應該寫return "forward:/notice";
然后最終會返回的view是common/notice
具體跳到什么頁面,和你spring的配置有關。
如果是如下配置:
1
2
3
4
5
|
<
bean
class
=
"org.springframework.web.servlet.view.InternalResourceViewResolver"
>
<
property
name
=
"prefix"
value
=
"/WEB-INF/jsp/"
/>
<
property
name
=
"suffix"
value
=
".jsp"
/>
<
property
name
=
"viewClass"
value
=
"org.springframework.web.servlet.view.JstlView"
/>
</
bean
>
|
那么就會跳轉到/WEB-INF/jsp/common/notice.jsp
你檢查下你的代碼和配置吧~