You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by mr...@apache.org on 2005/08/26 07:46:58 UTC
svn commit: r240168 [30/30] - in /struts/sandbox/trunk/ti: ./
core/src/java/org/apache/ti/ core/src/java/org/apache/ti/config/
core/src/java/org/apache/ti/config/mapper/
core/src/java/org/apache/ti/core/ core/src/java/org/apache/ti/core/factory/
core/s...
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/basic/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/basic/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/basic/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/basic/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,69 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/basic/Controller.java. -->
+<xwork>
+ <package name="/pageflow/basic" namespace="/pageflow/basic">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.basic.Controller</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "someAction". Forward to "someAction.jsp" is implicit. -->
+ <action name="someAction" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <result name="success" type="pathResult">
+ <param name="location">someAction.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "throw1". Forward to "throw1.jsp" is implicit. -->
+ <action name="throw1" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <result name="success" type="pathResult">
+ <param name="location">throw1.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "throw2". Forward to "throw2.jsp" is implicit. -->
+ <action name="throw2" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <result name="success" type="pathResult">
+ <param name="location">throw2.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from @ti.handleException annotation for Exception.class. -->
+ <action name="pageflow.basic.Controller$CustomException" class="org.apache.ti.pageflow.xwork.PageFlowExceptionHandler">
+ <result name="success" type="pathResult">
+ <param name="location">error.jsp</param>
+ </result>
+ </action>
+
+ <!--
+ Generated from exception handler method "handleArithmeticException". Forward to
+ "handleArithmeticException.jsp" is implicit.
+ -->
+ <action name="java.lang.ArithmeticException" class="org.apache.ti.pageflow.xwork.PageFlowExceptionHandler">
+ <result name="success" type="pathResult">
+ <param name="location">handleArithmeticException.jsp</param>
+ </result>
+ </action>
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/formBean/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/formBean/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/formBean/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/formBean/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,41 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/formBean/Controller.java. -->
+<xwork>
+ <package name="/pageflow/formBean" namespace="/pageflow/formBean">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.formBean.Controller</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "submit". Forward to "submit.jsp" is implicit. -->
+ <action name="submit" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="formBeanType">pageflow.formBean.Controller$MyBean</param>
+ <param name="formBeanAttribute">myBean</param>
+ <result name="success" type="pathResult">
+ <param name="location">submit.jsp</param>
+ </result>
+ </action>
+
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/loginflow/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/loginflow/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/loginflow/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/loginflow/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,62 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/loginexample/loginflow/Controller.java. -->
+<xwork>
+ <package name="/pageflow/loginexample/loginflow" namespace="/pageflow/loginexample/loginflow">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.loginexample.loginflow.Controller</param>
+ <param name="nestedFlow">true</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "cancel". -->
+ <action name="cancel" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="returnActionResult">
+ <param name="returnAction">loginCancel</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "login". -->
+ <action name="login" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="validationErrorForward">failure</param>
+ <param name="formBeanType">pageflow.loginexample.loginflow.Controller$LoginForm</param>
+ <param name="formBeanAttribute">loginForm</param>
+ <result name="success" type="returnActionResult">
+ <param name="returnAction">loginSuccess</param>
+ </result>
+ <result name="failure" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from @ti.handleException annotation for LoginException.class. -->
+ <action name="javax.security.auth.login.LoginException" class="org.apache.ti.pageflow.xwork.PageFlowExceptionHandler">
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/protectedflow/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/protectedflow/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/protectedflow/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/protectedflow/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,43 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/loginexample/protectedflow/Controller.java. -->
+<xwork>
+ <package name="/pageflow/loginexample/protectedflow" namespace="/pageflow/loginexample/protectedflow">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.loginexample.protectedflow.Controller</param>
+ <param name="nestedFlow">true</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <param name="loginRequired">true</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "cancel". -->
+ <action name="done" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <param name="loginRequired">true</param>
+ <result name="success" type="returnActionResult">
+ <param name="returnAction">protectedFlowDone</param>
+ </result>
+ </action>
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/start/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/start/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/start/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/loginexample/start/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,89 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/loginexample/start/Controller.java. -->
+<xwork>
+ <package name="/pageflow/loginexample/start" namespace="/pageflow/loginexample/start">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.loginexample.start.Controller</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "goProtectedFlow". -->
+ <action name="goProtectedFlow" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <param name="loginRequired">true</param>
+ <result name="success" type="pathResult">
+ <param name="location">/pageflow/loginexample/protectedflow/Controller.jpf</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "protectedFlowDone". -->
+ <action name="protectedFlowDone" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="navigateToPageResult">
+ <param name="previousPageIndex">0</param>
+ </result>
+ </action>
+
+ <!--
+ Generated from inherited simple action "loginCancel", in pageflow.loginexample.BaseFlow.
+ -->
+ <action name="loginCancel" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="navigateToPageResult">
+ <param name="previousPageIndex">0</param>
+ </result>
+ </action>
+
+ <!--
+ Generated from inherited simple action "loginSuccess", in pageflow.loginexample.BaseFlow.
+ -->
+ <action name="loginSuccess" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="navigateToActionResult"/>
+ </action>
+
+ <!-- Generated from inherited action method "logout", in pageflow.loginexample.BaseFlow. -->
+ <action name="logout" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <result name="success" type="navigateToPageResult">
+ <param name="previousPageIndex">0</param>
+ </result>
+ </action>
+
+ <!--
+ Generated from an inherited @ti.handleException annotation for
+ NotLoggedInException.class, in pageflow.loginexample.BaseFlow.
+ -->
+ <action name="org.apache.ti.pageflow.NotLoggedInException" class="org.apache.ti.pageflow.xwork.PageFlowExceptionHandler">
+ <result name="success" type="pathResult">
+ <param name="location">/pageflow/loginexample/loginflow/Controller.jpf</param>
+ </result>
+ </action>
+
+
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/chooseAirport/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/chooseAirport/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/chooseAirport/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/chooseAirport/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,67 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/nesting/chooseAirport/ChooseAirport.java. -->
+<xwork>
+ <package name="/pageflow/nesting/chooseAirport" namespace="/pageflow/nesting/chooseAirport">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.nesting.chooseAirport.ChooseAirport</param>
+ <param name="nestedFlow">true</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "confirmResults". -->
+ <action name="confirmResults" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="returnActionResult">
+ <param name="returnAction">chooseAirportDone</param>
+ <param name="outputFormBeanMember">_currentResults</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "cancelSearch". -->
+ <action name="cancelSearch" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="returnActionResult">
+ <param name="returnAction">chooseAirportCancelled</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "doSearch". -->
+ <action name="doSearch" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="validationErrorForward">failure</param>
+ <param name="formBeanType">pageflow.nesting.chooseAirport.ChooseAirport$SearchForm</param>
+ <param name="formBeanAttribute">searchForm</param>
+ <result name="confirm" type="pathResult">
+ <param name="location">confirm.jsp</param>
+ </result>
+ <result name="nonefound" type="pathResult">
+ <param name="location">nonefound.jsp</param>
+ </result>
+ <result name="failure" type="navigateToPageResult">
+ <param name="previousPageIndex">0</param>
+ </result>
+ </action>
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/xwork.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/xwork.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/_pageflow-config/pageflow/nesting/xwork.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,58 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
+ "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
+
+<!-- Generated from /pageflow/nesting/Controller.java. -->
+<xwork>
+ <package name="/pageflow/nesting" namespace="/pageflow/nesting">
+ <result-types>
+ <result-type name="pathResult" class="org.apache.ti.pageflow.xwork.PageFlowPathResult"/>
+ <result-type name="navigateToPageResult" class="org.apache.ti.pageflow.xwork.NavigateToPageResult"/>
+ <result-type name="navigateToActionResult" class="org.apache.ti.pageflow.xwork.NavigateToActionResult"/>
+ <result-type name="returnActionResult" class="org.apache.ti.pageflow.xwork.ReturnActionResult"/>
+ </result-types>
+
+ <!--
+ This is (hopefully) temporary. It's a dummy action that only contains metadata
+ (parameters) about this module.
+ -->
+ <action name="_moduleMetadata">
+ <param name="controllerClassName">pageflow.nesting.Controller</param>
+ </action>
+
+ <!-- A "begin" action with forward to "begin.jsp" is generated implicitly. -->
+ <action name="begin" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">begin.jsp</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "chooseAirport". -->
+ <action name="chooseAirport" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="pathResult">
+ <param name="location">/pageflow/nesting/chooseAirport/ChooseAirport.jpf</param>
+ </result>
+ </action>
+
+ <!-- Generated from simple action "chooseAirportCancelled". -->
+ <action name="chooseAirportCancelled" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="simpleAction">true</param>
+ <param name="defaultForward">success</param>
+ <result name="success" type="navigateToPageResult">
+ <param name="previousPageIndex">0</param>
+ </result>
+ </action>
+
+ <!-- Generated from action method "chooseAirportDone". Forward to "chooseAirportDone.jsp" is implicit. -->
+ <action name="chooseAirportDone" class="org.apache.ti.pageflow.xwork.PageFlowAction">
+ <param name="formBeanType">pageflow.nesting.chooseAirport.ChooseAirport$Results</param>
+ <param name="formBeanAttribute">results</param>
+ <result name="success" type="pathResult">
+ <param name="location">chooseAirportDone.jsp</param>
+ </result>
+ </action>
+ </package>
+</xwork>
Added: struts/sandbox/trunk/ti/samples/src/resources/log4j.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/resources/log4j.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/resources/log4j.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/resources/log4j.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <appender name="STRUTSTI_FILE_LOG" class="org.apache.log4j.RollingFileAppender">
+ <param name="File" value="STRUTSTI.log"/>
+ <param name="Append" value="true"/>
+ <param name="MaxFileSize" value="500000KB"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{DATE} %-5p %-15c{1} [%x]: %m%n"/>
+ </layout>
+ </appender>
+
+ <appender name="STRUTSTI_CONSOLE_LOG" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{DATE} %-5p %-15c{1} [%x]: %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- STRUTSTI -->
+ <category name="org.apache.ti">
+ <priority value="warn"/>
+ <appender-ref ref="STRUTSTI_CONSOLE_LOG"/>
+ </category>
+
+ <!-- Jakarta Commons -->
+ <category name="org.apache.commons">
+ <priority value="warn"/>
+ <appender-ref ref="STRUTSTI_CONSOLE_LOG"/>
+ </category>
+
+</log4j:configuration>
Added: struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/struts-ti-config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/struts-ti-config.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/struts-ti-config.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/struts-ti-config.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<netui-config xmlns="http://struts.apache.org/ti/2004/server/config">
+
+ <expression-languages>
+ <default-language>netuiel</default-language>
+ <expression-language>
+ <name>netuiel</name>
+ <factory-class>org.apache.ti.script.el.ExpressionEvaluatorImpl$NetUIELEngineFactory</factory-class>
+ </expression-language>
+ </expression-languages>
+
+ <!-- This block is used by the "actioninterceptors" sample. -->
+ <pageflow-action-interceptors>
+ <per-pageflow>
+ <pageflow-uri>/actioninterceptors/interceptme/Controller.jpf</pageflow-uri>
+ <per-action>
+ <action-name>begin</action-name>
+ <simple-action-interceptor>
+ <intercept-path>/actioninterceptors/nested/Controller.jpf</intercept-path>
+ </simple-action-interceptor>
+ </per-action>
+ <per-action>
+ <action-name>another</action-name>
+ <action-interceptor>
+ <interceptor-class>org.apache.ti.samples.pageflow.actioninterceptors.MyInterceptor</interceptor-class>
+ </action-interceptor>
+ </per-action>
+ </per-pageflow>
+ </pageflow-action-interceptors>
+
+ <!-- This block is used by the "loginexample" sample. -->
+ <pageflow-handlers>
+ <login-handler>
+ <handler-class>org.apache.ti.samples.pageflow.loginexample.ExampleLoginHandler</handler-class>
+ </login-handler>
+ </pageflow-handlers>
+
+</netui-config>
Added: struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/web.xml?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/web.xml (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/WEB-INF/web.xml Thu Aug 25 22:46:03 2005
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <!-- Filter to perform Page Flow operations when JSPs are hit directly. -->
+ <filter>
+ <filter-name>PageFlowJspFilter</filter-name>
+ <filter-class>org.apache.ti.servlet.PageFlowJspFilter</filter-class>
+ </filter>
+
+ <!-- Filter to perform Page Flow operations when JavaServer Faces pages are hit directly. -->
+ <filter>
+ <filter-name>PageFlowFacesFilter</filter-name>
+ <filter-class>org.apache.ti.servlet.PageFlowFacesFilter</filter-class>
+ </filter>
+
+ <!--
+ It is possible - but certainly not required - to keep source files such as page flows and
+ JavaServer Faces backing beans mixed in with web content. In this case, and when the web
+ content directory itself is being deployed without being copied to some other build
+ location, it is important to prevent the source code from being URL-addressable. This
+ filter returns a specified error code when source files are requested.
+ -->
+ <filter>
+ <filter-name>PageFlowForbiddenFilter</filter-name>
+ <filter-class>org.apache.ti.servlet.PageFlowForbiddenFilter</filter-class>
+ <init-param>
+ <param-name>response-code</param-name>
+ <param-value>404</param-value>
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>PageFlowJspFilter</filter-name>
+ <url-pattern>*.jsp</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>PageFlowJspFilter</filter-name>
+ <url-pattern>*.jspx</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>PageFlowFacesFilter</filter-name>
+ <url-pattern>*.faces</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>PageFlowFacesFilter</filter-name>
+ <url-pattern>*.jsf</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+
+ <!-- Prevent URL access to Java source code. -->
+ <filter-mapping>
+ <filter-name>PageFlowForbiddenFilter</filter-name>
+ <url-pattern>*.java</url-pattern>
+ <dispatcher>REQUEST</dispatcher>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>action</servlet-name>
+ <servlet-class>org.apache.ti.servlet.StrutsTiServlet</servlet-class>
+ <load-on-startup>2</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>action</servlet-name>
+ <url-pattern>*.jpf</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>action</servlet-name>
+ <url-pattern>*.do</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Added: struts/sandbox/trunk/ti/samples/src/webapp/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/index.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/index.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/index.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,10 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3>Struts Ti Samples</h3>
+
+ <a href="pageflow">Page Flow Samples</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,13 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+ <a href="someAction.do">action someAction</a>
+ <br/>
+ <a href="throw1.do">throw IntentionalException</a>
+ <br/>
+ <a href="throw2.do">throw ArithmeticException</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/error.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/error.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/error.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/error.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,9 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+ <a href="begin.do">start over</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/handleArithmeticException.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/handleArithmeticException.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/handleArithmeticException.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/handleArithmeticException.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,9 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+ <a href="begin.do">start over</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/someAction.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/someAction.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/someAction.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/basic/someAction.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,9 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+ <a href="begin.do">start over</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,14 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+
+ <form action="submit.do" method="POST">
+ foo: <input name="{actionForm.foo}" type="text"/>
+ <br/>
+ <input type="submit" value="submit"/>
+ </form>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/submit.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/submit.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/submit.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/formBean/submit.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,12 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3><%= request.getRequestURI() %></h3>
+
+ result: <b>${pageInput.result}</b>
+ <br/>
+ <a href="begin.do">start over</a>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/index.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/index.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/index.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,30 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <body>
+ <h3>Page Flow Samples</h3>
+
+ <dl>
+ <dt><a href="basic/Controller.jpf">basic</a></dt>
+ <dd>A very simple page flow.</dd>
+ </dl>
+
+ <dl>
+ <dt><a href="nesting/Controller.jpf">Nested Page Flow</a></dt>
+ <dd>
+ Demonstrates a simple nested page flow that returns data back to the original page
+ flow.
+ </dd>
+ </dl>
+
+ <dl>
+ <dt><a href="loginexample/start/Controller.jpf">Login</a></dt>
+ <dd>
+ Demonstrates defining your own LoginHandler, as well as nested page flows and Page Flow
+ inheritance.
+ </dd>
+ </dl>
+
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,65 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ page import="javax.security.auth.login.LoginException"%>
+
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Login Nested Page Flow</h3>
+
+ <i>In this example, the only valid login is username 'good', password 'good'.</i>
+ <br/>
+ <br/>
+
+ <span style="color:red;">
+ <%--<netui:error key="javax.security.auth.login.LoginException"/>--%>
+
+ <%
+ // This is temporary -- no error tag or message bundle support. Normally, the
+ // exception would be mapped to a message.
+ Throwable th = (Throwable) request.getAttribute(org.apache.ti.Globals.EXCEPTION_KEY);
+ %>
+ <%= th != null && th instanceof LoginException ? th.getClass().getName() + " : " + th.getMessage() : "" %>
+ </span>
+
+ <form action="login.do" method="POST">
+ <table>
+ <tr>
+ <td>username:</td>
+ <td><input type="text" name="{actionForm.username}"/></td>
+ <td><span style="color:red;"><%--<netui:error key="username"/>--%></span></td>
+ </tr>
+ <tr>
+ <td>password:</td>
+ <td><input type="password" name="{actionForm.password}" password="true"/></td>
+ <td><span style="color:red;"><%--<netui:error key="password"/>--%></span></td>
+ </tr>
+ </table>
+
+ <br/>
+ <input type="submit" value="submit"/>
+ <input type="submit" value="cancel" name="actionOverride:cancel"/>
+ </form>
+ </body>
+</html>
+
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/failure.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/failure.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/failure.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/loginflow/failure.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,36 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Login Nested Page Flow</h3>
+
+ Login failed.
+
+ <br/>
+ <br/>
+ <a href="cancel.do">cancel</a>
+ <br/>
+ <a href="begin.do">try again</a>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/protectedflow/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/protectedflow/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/protectedflow/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/protectedflow/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,33 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Protected Page Flow</h3>
+
+ If you got here, then you're logged in.
+ <br/>
+ <a href="done.do">done</a>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/start/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/start/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/start/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/loginexample/start/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,78 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Login Example</h3>
+
+ This example demonstrates the following features:
+ <ul>
+ <li>Plugging in your own LoginHandler</li>
+ <li>Using Page Flow inheritance for common actions and exception handlers</li>
+ <li>Using nested page flows</li>
+ </ul>
+
+ Some notes:
+ <ul>
+ <li>
+ All login-related behavior (current user, login, logout, etc.) is defined by
+ <code>org.apache.beehive.samples.netui.loginexample.ExampleLoginHandler</code>, which
+ is registered as the login handler in WEB-INF/beehive-netui-config.xml. This overrides the
+ default behavior, which is to use the current Servlet container's login mechanism.
+ </li>
+ <li>
+ When you click 'go to a protected flow', a <code>NotLoggedInException</code> will be
+ thrown, because the 'goProtectedFlow' action is marked with <code>loginRequired=true</code>,
+ and you are not currently logged in.
+ </li>
+ <li>
+ The current page flow does not handle <code>NotLoggedInException</code>, but its base class
+ (<code>org.apache.beehive.samples.netui.loginexample.BaseFlow</code>). The base class
+ forwards to the Login nested page flow when this exception occurs.
+ </li>
+ <li>
+ There are two possible <strong>return actions</strong> from the Login nested page flow:
+ 'loginSuccess' or 'loginCancel'. Take a look at each action, defined in
+ <code>org.apache.beehive.samples.netui.loginexample.BaseFlow</code>. The 'loginSuccess'
+ action <strong>re-runs the original target action</strong>, which was 'goProtectedFlow'. Now
+ that you're logged in, the action will succeed. The 'loginCancel' action just takes you back
+ to the original page you were on.
+ </li>
+ <li>
+ If you've logged in successfully, you can hit 'go to a protected flow' again -- this time it
+ will succeed.
+ </li>
+ <li>
+ Note that the current page flow (or any other page flow) knows <i>nothing</i> about the Login
+ page flow. It only has to mark its protected actions with <code>loginRequired=true</code>.
+ The base class page flow and the Login flow take care of the rest.
+ </li>
+ </ul>
+
+ <br/>
+ <a href="goProtectedFlow.do">go to a protected page flow</a>
+ <br/>
+ <a href="logout.do">log out</a>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,49 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ Clicking the link below launches the ChooseAirport nested page flow, which does one of two
+ things:
+ <ul>
+ <li>
+ Returns the 'chooseAirportDone' action, which carries a Results bean with it. In
+ this case, we forward to a results page to display the returned data.
+ </li>
+ <li>
+ Returns the 'chooseAirportCancelled' action, in which case we just go back to the
+ current page.
+ </li>
+ </ul>
+ The "Your Name" field below is used to show that this page flow's state is preserved when
+ you return from the nested flow.
+ <br/>
+ <br/>
+ <hr/>
+ <form action="chooseAirport.do" method="POST">
+ Your Name: <input type="text" name="{pageFlow.yourName}"/>
+ <br/>
+ <input type="submit" value="Run the Choose Airport wizard"/>
+ </form>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/begin.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/begin.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/begin.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/begin.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,36 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Choose Airport (nested page flow)</h3>
+ <form action="doSearch.do" method="POST">
+ Airport city or name:
+ <input name="{actionForm.searchText}"/>
+ <%--<netui:error key="searchText"/>--%>
+ <br/>
+ <input type="submit" value="OK"/>
+ <input type="submit" name="actionOverride:cancelSearch" value="cancel"/>
+ </form>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/confirm.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/confirm.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/confirm.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/confirm.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,37 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Choose Airport (nested page flow)</h3>
+
+ <form action="confirmResults.do" method="POST">
+ The closest match was <b>${pageFlow.currentResults.airport}</b>
+ (<b>${pageFlow.currentResults.airportCode}</b>).
+ <br/>
+ <br/>
+ <input type="submit" value="OK"/>
+ <input type="submit" name="actionOverride:cancelSearch" value="cancel"/>
+ </form>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/nonefound.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/nonefound.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/nonefound.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirport/nonefound.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,34 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ <h3>Choose Airport (nested page flow)</h3>
+
+ No airports match the search text.
+ <br/>
+ <a href="begin.do">try again</a>
+ <br/>
+ <a href="cancelSearch.do">cancel</a>
+ </body>
+</html>
Added: struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirportDone.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirportDone.jsp?rev=240168&view=auto
==============================================================================
--- struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirportDone.jsp (added)
+++ struts/sandbox/trunk/ti/samples/src/webapp/pageflow/nesting/chooseAirportDone.jsp Thu Aug 25 22:46:03 2005
@@ -0,0 +1,31 @@
+<%--
+ Copyright 2004-2005 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ $Header:$
+--%>
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+
+<html>
+ <head>
+ <base href="<%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getRequestURI() %>">
+ </head>
+
+ <body>
+ Hi, <b>${pageFlow.yourName}</b>. The airport you chose was <b>${pageInput.airport}</b>.
+ <br/>
+ <br/>
+ <a href="begin.do">start over</a>
+ </body>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org