struts2登录后返回登录前的页面
生活随笔
收集整理的這篇文章主要介紹了
struts2登录后返回登录前的页面
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在Action中添加
String getUrl() {
return ServletActionContext.getRequest().getHeader("referer");
}
?
然后配置struts的這個Action的result為:<result type="redirect">${url}</result>就可以了
轉載于:https://www.cnblogs.com/lanhj/p/3385077.html
總結
以上是生活随笔為你收集整理的struts2登录后返回登录前的页面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 乌镇残疾人免费吗
- 下一篇: PHP basename() 函数