404 페이지 대신 Struts Problem Report 나올 때
2015. 7. 27. 13:22ㆍplming/Java - Struts
web.xml 에
<error-page> |
설정을 해놓은 후
Action명과 일치하지 않는 잘못된 URL을 입력했을 경우
위에 설정되어있는 404.jsp가 실행될 것이라 예상을 했지만
아래처럼 Struts Problem Report 가 계속나온다면...
Struts Problem ReportStruts has detected an unhandled exception:
StacktracesThere is no Action mapped for namespace [/] and action name [xxx] associated with context path []. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) |
struts.properties 의
struts.devMode = true 를
struts.devMode = false 로 바꿔주면
Struts Problem Report 페이지 대신
404로 지정한 페이지가 표시된다.
'plming > Java - Struts' 카테고리의 다른 글
Struts - ajax/json (0) | 2015.05.20 |
---|---|
Struts2 - Login 처리 (0) | 2015.05.20 |