
test,則模組路徑為 /test。struts-config.xml 複製到 WEB-INF/.pageflow-struts-generated/ 下,並依命名規則 jpf-struts-config-<dir>.xml 重命名(本例為 jpf-struts-config-test.xml)。此命名規則讓 Portal 中的行為 Servlet 能動態註冊 Struts 應用程式模組。<controller className="com.bea.wlw.netui.pageflow.config.PageFlowControllerConfig"
multipartClass="com.bea.wlw.netui.pageflow.upload.PageFlowMultipartRequestHandler"
inputForward="true"
processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor">
<set-property value="true" property="isReturnToPageDisabled"/>
<set-property value="true" property="isReturnToActionDisabled"/>
</controller>
WEB-INF/src 下(本例為 teststruts 目錄)。jpf-struts-config-<dir>.xml,使其與 Workshop 中的目錄結構一致。範例配置片段:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "https://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans/>
<global-exceptions/>
<global-forwards/>
<form-beans>
<form-bean name="userActionForm" type="teststruts.UserActionForm" />
</form-beans>
<action-mappings>
<action validate="false" scope="request" type="test.TestController" path="/begin">
<forward path="/index.jsp" name="success"/>
</action>
</action-mappings>
</struts-config>