2014-03-25 3 views
0

작업이 오류를 반환하면 index.action?notSupported=true으로 리디렉션되는 Struts 2를 사용하는 웹 응용 프로그램이 있습니다. 여기에서 페이지를 새로 고침 할 때까지 index.action?notSupported=true이 아닌 index.action으로 다시 이동하는 방법이 있습니까?다시로드시 기본 URL로 리디렉션

답변

2

시도해보십시오.

window.location.href=window.location.href.substr(window.location.href,window.location.href.indexOf('?')) 

희망이 ... 도움이