<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

<struts-config>
    <form-beans>
      <form-bean name="com.ibm.ws.console.dynacache.DynamicCacheDetailForm" type="com.ibm.ws.console.dynacache.DynamicCacheDetailForm"/>      
      <form-bean name="com.ibm.ws.console.dynacache.ExternalCacheGroupCollectionForm" type="com.ibm.ws.console.dynacache.ExternalCacheGroupCollectionForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.ExternalCacheGroupDetailForm" type="com.ibm.ws.console.dynacache.ExternalCacheGroupDetailForm"/> 
      <form-bean name="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberCollectionForm" type="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberCollectionForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberDetailForm" type="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberDetailForm"/>
<!-- The following were added because of the move of CacheInstance from ws/code/webui.pme to ws/code/webui.dynacache -->
      <form-bean name="com.ibm.ws.console.dynacache.CacheInstanceCollectionForm" type="com.ibm.ws.console.dynacache.CacheInstanceCollectionForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.CacheInstanceDetailForm" type="com.ibm.ws.console.dynacache.CacheInstanceDetailForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.ServletCacheInstanceCollectionForm" type="com.ibm.ws.console.dynacache.ServletCacheInstanceCollectionForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.ServletCacheInstanceDetailForm" type="com.ibm.ws.console.dynacache.ServletCacheInstanceDetailForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.DRSSettingsDetailForm" type="com.ibm.ws.console.dynacache.DRSSettingsDetailForm"/>
      <form-bean name="com.ibm.ws.console.dynacache.J2EEResourceFactoryDetailForm" type="com.ibm.ws.console.dynacache.J2EEResourceFactoryDetailForm"/>
    </form-beans>

    <global-forwards>
        
    </global-forwards>

    <action-mappings>
         <action name="com.ibm.ws.console.dynacache.forwardCmd"
                path="/com.ibm.ws.console.dynacache.forwardCmd" type="com.ibm.ws.console.core.action.ForwardAction">
            <forward name="DynamicCache.config.view" path="DynamicCache.config.view"/>
        	<forward name="DynamicCache.content.main" path="DynamicCache.content.main"/>
        	<forward name="ExternalCacheGroup.content.main" path="ExternalCacheGroup.content.main"/>
        	<forward name="ExternalCacheGroupMember.content.main" path="ExternalCacheGroupMember.content.main"/>               
    		<forward name="CacheInstance.config.view" path="CacheInstance.config.view"/>
	    	<forward name="CacheInstance.content.main" path="CacheInstance.content.main"/>
    		<forward name="ServletCacheInstance.config.view" path="ServletCacheInstance.config.view"/>
	    	<forward name="ServletCacheInstance.content.main" path="ServletCacheInstance.content.main"/>	    	
		    <forward name="PMEJ2EEResourceProperty.content.main" path="PMEJ2EEResourceProperty.content.main"/>
		    <forward name="PMEJ2EEResourceProperty.config.view" path="PMEJ2EEResourceProperty.config.view"/>
            <forward name="PMEDynamicCacheDRSSettings.config.view" path="PMEDynamicCacheDRSSettings.config.view"/>
            <forward name="MultibrokerDomain.content.main" path="MultibrokerDomain.content.main"/>
        </action>
    
        <action
            name="com.ibm.ws.console.dynacache.DynamicCacheDetailForm"
            path="/dynamicCacheDetail" type="com.ibm.ws.console.dynacache.DynamicCacheDetailAction" input="DynamicCache.config.view">
            <forward name="error" path="DynamicCache.config.view"/>
            <forward name="success" path="Server.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.ExternalCacheGroupCollectionForm"
            path="/externalCacheGroupCollection" type="com.ibm.ws.console.dynacache.ExternalCacheGroupCollectionAction" input="ExternalCacheGroup.content.main">
            <forward name="error" path="DynamicCache.config.view"/>
            <forward name="success" path="ExternalCacheGroup.config.view"/>
            <forward name="externalCacheGroupCollection" path="ExternalCacheGroup.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.ExternalCacheGroupDetailForm"
            path="/externalCacheGroupDetail" type="com.ibm.ws.console.dynacache.ExternalCacheGroupDetailAction" input="ExternalCacheGroup.config.view">
            <forward name="error" path="ExternalCacheGroup.config.view"/>
            <forward name="success" path="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=ExternalCacheGroup.content.main"/>
            <forward name="externalCacheGroupCollection" path="ExternalCacheGroup.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberCollectionForm"
            path="/externalCacheGroupMemberCollection" type="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberCollectionAction" input="ExternalCacheGroupMember.content.main">
            <forward name="error" path="ExternalCacheGroup.content.main"/>
            <forward name="success" path="ExternalCacheGroupMember.config.view"/>
            <forward name="externalCacheGroupMemberCollection" path="ExternalCacheGroupMember.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberDetailForm"
            path="/externalCacheGroupMemberDetail" type="com.ibm.ws.console.dynacache.ExternalCacheGroupMemberDetailAction" input="ExternalCacheGroupMember.config.view">
            <forward name="error" path="ExternalCacheGroupMember.config.view"/>
            <forward name="success" path="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=ExternalCacheGroupMember.content.main"/>
            <forward name="externalCacheGroupCollection" path="ExternalCacheGroupMember.content.main"/>
        </action>


<!-- The following were added because of the move of CacheInstance from ws/code/webui.pme to ws/code/webui.dynacache -->
      <action
            name="com.ibm.ws.console.dynacache.CacheInstanceCollectionForm"
            path="/cacheInstanceCollection" type="com.ibm.ws.console.dynacache.CacheInstanceCollectionAction">
            <forward name="failure" path="/error.jsp"/>
            <forward name="success" path="CacheInstance.config.view"/>
            <forward name="cacheInstanceCollection" path="CacheInstance.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.CacheInstanceDetailForm"
            path="/cacheInstanceDetail" type="com.ibm.ws.console.dynacache.CacheInstanceDetailAction" input="CacheInstance.config.view">
            <forward name="error" path="CacheInstance.config.view"/>
            <forward name="success" path="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=CacheInstance.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.DRSSettingsDetailForm"
            path="/pmedynamicCacheDRSSettingsDetail" type="com.ibm.ws.console.dynacache.DRSSettingsDetailAction" input="PMEDynamicCacheDRSSettings.config.view">
            <forward name="error" path="PMEDynamicCacheDRSSettings.config.view"/>
            <forward name="success" path="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=CacheInstance.config.view"/>
        </action>

      <action
            name="com.ibm.ws.console.dynacache.ServletCacheInstanceCollectionForm"
            path="/servletCacheInstanceCollection" type="com.ibm.ws.console.dynacache.ServletCacheInstanceCollectionAction">
            <forward name="failure" path="/error.jsp"/>
            <forward name="success" path="ServletCacheInstance.config.view"/>
            <forward name="servletCacheInstanceCollection" path="ServletCacheInstance.content.main"/>
        </action>
        <action
            name="com.ibm.ws.console.dynacache.ServletCacheInstanceDetailForm"
            path="/servletCacheInstanceDetail" type="com.ibm.ws.console.dynacache.ServletCacheInstanceDetailAction" input="ServletCacheInstance.config.view">
            <forward name="error" path="ServletCacheInstance.config.view"/>
            <forward name="success" path="com.ibm.ws.console.dynacache.forwardCmd.do?forwardName=ServletCacheInstance.content.main"/>
        </action>        

    </action-mappings>
</struts-config>
