<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appian-web-config PUBLIC "-//Appian Corporation//DTD Appian Web MVC Configuration 1.0//EN" "/WEB-INF/appian-web-config_1_0.dtd" >

<appian-web-config>
 <appian-form-beans>
    <appian-form-bean name="ap_webPageForm"
               type="com.appiancorp.ap2.p.webpage.mediators.WebPageForm" />
  </appian-form-beans>

  <global-forwards type="com.appiancorp.web.framework.kernel.main.ActionForward"/>
  
  <appian-action-mappings>
  <appian-action path="/p_webpage/pcontrol"
      type="com.appiancorp.ap2.p.webpage.actions.PortletController" 
      name="ap_webPageForm" scope="request" cancellable="true">
    <forward name="success" path="/p_webpage/view.do"/>
    <forward name="customize" path="/p_webpage/saveportletprepare.do"/>
	</appian-action>
    
  <appian-action path="/p_webpage/saveportletprepare"
      type="com.appiancorp.ap2.p.webpage.actions.SavePortletPrepare"
      name="ap_webPageForm" scope="request" cancellable="true">
    <forward name="success" path="/portlet/webpage/configure.jsp"/>
  </appian-action>

  <appian-action path="/p_webpage/saveportlet"
      type="com.appiancorp.ap2.p.webpage.actions.SavePortlet" 
      name="ap_webPageForm" scope="request" cancellable="true">
    <forward name="prepare" path="/p_webpage/saveportletprepare.do"/>
    <forward name="form" path="/portlet/webpage/configure.jsp"/>
    <forward name="success" path="/p_webpage/view.do"/>
    <forward name="cancel" path="/p_webpage/pcontrol.do"/>
  </appian-action>
	
  <appian-action path="/p_webpage/view"
      type="com.appiancorp.ap2.p.webpage.actions.ViewWebPageAction" 
      name="ap_webPageForm" 
      scope="request"
      cancellable="true">
    <forward name="prepare" path="/p_webpage/pcontrol.do"/>
    <forward name="success" path="/portlet/webpage/webpage.jsp"/>
	</appian-action>
  </appian-action-mappings>

  <message-resources parameter="resources.application"/>

</appian-web-config>
