프로그래밍/Framework
[Struts2] result의 type 속성
galad
2009. 4. 8. 13:52
<action name="addContentType" class="com.omp.bp.cms.content.action.ContentTypeAction" method="addContentType"> <result>/cms/content/contenttype/m_register_content_type_main.jsp</result> </action> <action name="registerContentType" class="com.omp.bp.cms.content.action.ContentTypeAction" method="registerContentType"> <result>/cms/content/contenttype/m_register_content_type_main.jsp</result> <result name="TEST" type="chain">addContentType</result> </action> |
위처럼 chain으로 해서 다른 액션에 바로 연결할 수 있으나, 주소가 안 바뀐다.
사용할 경우를 골라야 할 듯.
redirect와 병행 사용?