| Name | Description |
| bundle | Exception의 handler 클래스가 사용하는 message resources bundle에 대한 servlet context attribute의
name 값이다.
디폴트 값 : org.apache.struts.Globals.MESSAGES_KEY의 값 |
| className | Exception들의 configuration 정보를 담고 있을 객체이다. 반드시 org.apache.struts.config.ExceptionConfig 또는 이를 상속 받은 클래스여야 한다.
디폴트 값 : org.apache.struts.config.ExceptionConfig |
| handler | 이 exception이 발생할 때, 이 exception을 처리하는 클래스를 나타낸다.
즉, handler 클래스는, 어떤 exception이 발생하면, 적절한 error message('key' attribute)와 함께 적절한
페이지('path' attribute)로 forward 해주는 클래스이다. 반드시 org.apache.struts.action.ExceptionHandler 또는 이를 상속 받은 클래스여야 한다.
디폴트 값 : org.apache.struts.action.ExceptionHandler |
| key | 이 exception이 발생할 때, message resource bundle에서 찾아낼 error message의 key 값이다. [required] |
| path | 이 exception이 발생할 때, forward할 resource(*.do, *.jsp 등)의 상대(module-relative)경로를 나타낸다. |
| scope | ActionError 객체에 접근할 context의 scope를 나타낸다. request 또는 session.
디폴트 값 : request |
| type | Exception Handling을 수행할 exception의 type을 나타낸다. [required] |
<global-exceptions> <exception key="global.exception.message" path="/basic/globalException.jsp" type="java.lang.Exception" handler="org.apache.struts.action.ExceptionHandler" /> </global-exceptions>
| Name | Description |
| bundle | Exception의 handler 클래스가 사용하는 message resources bundle에 대한 servlet context attribute의
name 값이다.
디폴트 값 : org.apache.struts.Globals.MESSAGES_KEY의 값 |
| className | Exception들의 configuration 정보를 담고 있을 객체이다. 반드시 org.apache.struts.config.ExceptionConfig 또는 이를 상속 받은 클래스여야 한다.
디폴트 값 : org.apache.struts.config.ExceptionConfig |
| handler | 이 exception이 발생할 때, 이 exception을 처리하는 클래스를 나타낸다.
즉, handler 클래스는, 어떤 exception이 발생하면, 적절한 error message('key' attribute)와 함께 적절한
페이지('path' attribute)로 forward 해주는 클래스이다.
반드시 org.apache.struts.action.ExceptionHandler 또는 이를 상속 받은 클래스여야 한다.
디폴트 값 : org.apache.struts.action.ExceptionHandler |
| key | 이 exception이 발생할 때, message resource bundle에서 찾아 낼 error message의 key 값이다. [required] |
| scope | ActionError 객체에 접근할 context의 scope를 나타낸다. request 또는 session.
디폴트 값 : request |
| type | Exception Handling을 수행할 exception의 type을 나타낸다. [required] |
<action
path="/login"
type="anyframe.sample.struts.web.action.LoginAction"
name="userForm"
scope="request"
input="/basic/login.jsp">
<exception key="error.password.mismatch" path="/basic/login.jsp"
type="javax.security.auth.login.FailedLoginException" />
<forward name="success" path="/basic/main.jsp" />
</action>