<?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_constant_form" type="com.appiancorp.ap2.p.constant.ConstantPortletForm" />
  </appian-form-beans>

  <appian-action-mappings>
    <appian-action path="/portlet/constant/viewPortlet"
            type="com.appiancorp.ap2.p.constant.ViewPortlet" 
            name="ap_constant_form" scope="request" cancellable="true">
        <forward name="success" path="/portlet/constant/view.jsp"/>
        <forward name="customize" path="/portlet/constant/configurePortletPrepare.do"/>
        <forward name="no_access" path="/portal/error.jsp"/>
    </appian-action>

    <appian-action path="/portlet/constant/configurePortletPrepare"
            type="com.appiancorp.ap2.p.constant.ConfigurePortletPrepare" 
            name="ap_constant_form" scope="request"
            validate="true">
        <forward name="success" path="/portlet/constant/configure.jsp"/>
    </appian-action>

    <appian-action path="/portlet/constant/configurePortlet"
            type="com.appiancorp.ap2.p.constant.ConfigurePortlet" 
            name="ap_constant_form" scope="request"
            validate="true">
        <forward name="success" path="/portlet/constant/viewPortlet.do"/>
    </appian-action>

    <appian-action path="/portlet/constant/updateConstant"
            type="com.appiancorp.ap2.p.constant.UpdateConstant" 
            name="ap_constant_form" scope="request"
            validate="true">
        <forward name="prepare" path="/portlet/constant/viewPortlet.do"/>
        <forward name="success" path="/portlet/constant/viewPortlet.do"/>
    </appian-action>
  </appian-action-mappings>

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

</appian-web-config>
