기본적으로 아래와 같은 환경파일을 struts 2에서 사용하고 있습니다.
그 중에서 struts.properties가 struts 2에 대한 기본설정을 담고 있습니다.

File Optional Location
Purpose
web.xml no /WEB-INF/ Web deployment descriptor to include all necessary framework components
struts.xml yes /WEB-INF/classes/ Main configuration, contains result/view types, action mappings, interceptors, and so forth
struts.properties yes /WEB-INF/classes/ Framework properties
struts-default.xml yes /WEB-INF/lib/struts2-core.jar Default configuration provided by Struts
struts-default.vm yes /WEB-INF/classes/ Default macros referenced by velocity.properties
struts-plugin.xml yes At the root of a plugin JAR Optional configuration files for Pluginsstruts.xml. in the same format as
velocity.properties yes /WEB-INF/classes/ Override the default Velocity configuration

위의 설정파일들 중에서 struts.properties 에서
### Used by the DefaultActionMapper
### You may provide a comma separated list, e.g. struts.action.extension=action,jnlp,do struts.action.extension=action
위의 빨간색 설정 부분을 xxx,do,action 등과 같이 우선순위가 높은 순서데로 설정을 한다.

'Apache Project > Struts 2.x' 카테고리의 다른 글

Struts 1.0 Vs Struts 2.0  (0) 2008/09/26
struts2 dtd 파일입니다.  (0) 2008/04/28
struts2 아키텍처 입니다.  (0) 2008/03/02
.action 확장자를 원하는 형태로 바꿔보자...  (0) 2008/03/02