struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject svn commit: r384251 - in /struts/sandbox/trunk/action2/apps/cookbook/src: java/cookbook2/ webapp/ webapp/WEB-INF/classes/ webapp/pages/Hello/ webapp/pages/Select/ webapp/pages/Simple/
Date Wed, 08 Mar 2006 16:22:36 GMT
Author: husted
Date: Wed Mar  8 08:22:19 2006
New Revision: 384251

URL: http://svn.apache.org/viewcvs?rev=384251&view=rev
Log:
Action2 Applications
* Work in progress
** Hello World
** Simple Input Form
** Complex Input Form using Selects

Added:
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Simple.java
      - copied, changed from r384097, struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Input.java
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml
      - copied, changed from r384097, struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Input.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp   (with
props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp   (with props)
Removed:
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Input.java
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Input.xml
Modified:
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Input.jsp
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/index.jsp

Copied: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Simple.java (from r384097,
struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Input.java)
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Simple.java?p2=struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Simple.java&p1=struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Input.java&r1=384097&r2=384251&rev=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Input.java (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/Simple.java Wed Mar  8 08:22:19
2006
@@ -2,7 +2,7 @@
 
 import com.opensymphony.xwork.ActionSupport;
 
-public class Input extends ActionSupport {
+public class Simple extends ActionSupport {
 
     private String name;
 
@@ -15,6 +15,15 @@
     }
 
     public String execute() throws Exception {
+        return SUCCESS;
+    }
+
+    public String input() throws Exception {
+        name = "glock";
+        return SUCCESS;
+    }
+
+    public String result() throws Exception {
         return SUCCESS;
     }
 }

Modified: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp?rev=384251&r1=384250&r2=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp Wed Mar  8 08:22:19 2006
@@ -59,21 +59,21 @@
     <td>Simple Input Form using Action Properties</td>
     <td>
 
-        <ww:url id="Input_exe" action="Input!input" />
-        <ww:a href="%{Input_exe}">
+        <ww:url id="Simple_exe" action="Simple!input" />
+        <ww:a href="%{Simple_exe}">
             <img src="<ww:url value="/images/execute.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
         </ww:a>
 
-        <ww:a href="%{Input_exe}">Execute</ww:a>
+        <ww:a href="%{Simple_exe}">Execute</ww:a>
 
 	</td>
     <td>
 
-        <ww:url id="Input_src" value="/pages/input/index.jsp" />
-        <ww:a href="%{Input_src}">
+        <ww:url id="Simple_src" value="/pages/Simple/index.jsp" />
+        <ww:a href="%{Simple_src}">
             <img src="<ww:url value="/images/code.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
         </ww:a>
-        <ww:a href="%{Input_src}">
+        <ww:a href="%{Simple_src}">
             View Source
         </ww:a>
 

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
Wed Mar  8 08:22:19 2006
@@ -0,0 +1,12 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
+
+<xwork>
+
+    <package name="Hello" extends="webwork-default" >
+
+        <action name="Hello" class="cookbook2.Hello">
+            <result>/pages/Hello/Result.jsp</result>
+        </action>
+
+    </package>
+</xwork>

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
Wed Mar  8 08:22:19 2006
@@ -0,0 +1,18 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
+
+<xwork>
+
+    <package name="Select" extends="webwork-default" >
+
+        <action name="Select" method="setup" class="cookbook2.Select">
+            <result>/pages/Select/Input.jsp</result>
+            <result name="input">/pages/Select/Input.jsp</result>
+        </action>
+
+        <action name="SelectResult" class="cookbook2.Select" >
+        	<result>/pages/Select/Result.jsp</result>
+        	<result name="input">/pages/Select/Input.jsp</result>
+        </action>
+                
+    </package>
+</xwork>

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml
(from r384097, struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Input.xml)
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml?p2=struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml&p1=struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Input.xml&r1=384097&r2=384251&rev=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Input.xml
(original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml
Wed Mar  8 08:22:19 2006
@@ -2,16 +2,16 @@
 
 <xwork>
 
-    <package name="Input" extends="webwork-default" >
+    <package name="Simple" extends="webwork-default" >
 
-        <action name="Input" class="cookbook2.Input">
-            <result>/pages/input/Input.jsp</result>
-            <result name="input">/pages/input/Input.jsp</result>
+        <action name="Simple" class="cookbook2.Simple">
+            <result>/pages/Simple/Input.jsp</result>
+            <result name="input">/pages/Simple/Input.jsp</result>
         </action>
 
-        <action name="InputResult" class="cookbook2.Input" >
-        	<result>/pages/input/Result.jsp</result>
-        	<result name="input">/pages/input/Input.jsp</result>
+        <action name="SimpleResult" method="result" class="cookbook2.Simple" >
+        	<result>/pages/Simple/Result.jsp</result>
+        	<result name="input">/pages/Simple/Input.jsp</result>
         </action>
                 
     </package>

Modified: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork.xml?rev=384251&r1=384250&r2=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork.xml (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork.xml Wed Mar
 8 08:22:19 2006
@@ -6,7 +6,7 @@
 
     <include file="xwork-Hello.xml"/>
 
-    <include file="xwork-Input.xml"/>
+    <include file="xwork-Simple.xml"/>
 
     <include file="xwork-Select.xml"/>
 

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp Wed Mar 
8 08:22:19 2006
@@ -0,0 +1,10 @@
+<html>
+<head>
+    <title>Cookbook - Hello World</title>
+</head>
+<body>
+<a href="Home.jsp"><img src="images/return.gif" height="24" width="24" alt="Go Home"
class="icon" /></a>
+<a href="pages/Hello/index.jsp"><img src="images/code.gif" height="24" width="24"
alt="Go Home" class="icon" /></a>
+<h1>Don't panic! Struts is mostly harmless ...</h1>
+</body>
+</html>
\ No newline at end of file

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/Result.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp Wed Mar  8
08:22:19 2006
@@ -0,0 +1,37 @@
+<%@taglib uri="/webwork" prefix="ww" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Source Code for Hello World</title>
+<link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css" />"
>
+</head>
+<body>
+
+<ww:url id="input_exe" action="Hello" />
+
+<ww:a href="%{input_exe}">
+    <img src="<ww:url value="/images/execute.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
+</ww:a>
+
+<a href="<ww:url value="/Home.jsp" />" >
+    <img src="<ww:url value="/images/return.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
+</a>
+
+<h1>Source Code for Hello World</h1>
+<hr noshade="noshade"/>
+
+<h2>Server Pages</h2>
+<p><a href="<ww:url value="/View.jsp?src=/pages/Hello/Result.jsp"/>">Result.jsp</a></p>
+
+<h2>Actions</h2>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/src/java/cookbook/Hello.java"/>">Hello.java</a></p>
+
+<h2>Configuration files</h2>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/classes/xwork-Hello.xml"/>">xwork-Hello.xml</a></p>
+
+<h2>Other source files</h2>
+<p>None</p>
+
+</body>
+</html>
\ No newline at end of file

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Hello/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp Wed Mar 
8 08:22:19 2006
@@ -0,0 +1,114 @@
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+<head>
+    <title>Cookbook - Input Form with Select Controls</title>
+    <ww:head/>
+</head>
+
+<body>
+
+<ww:form action="SelectResult" method="post">
+    <ww:textfield
+    		label="Name"
+    		name="name"
+    		tooltip="Enter your Name here" />
+
+    <ww:datepicker
+    		tooltip="Select Your Birthday"
+    		label="Birthday"
+    		name="birthday"/>
+
+    <ww:textarea
+    		tooltip="Enter your Biography"
+    		label="Biograph"
+    		name="bio"
+    		cols="20"
+    		rows="3"/>
+
+    <ww:select
+    		tooltip="Choose Your Favourite Color"
+    		label="Favorite Color"
+    		list="{'Red', 'Blue', 'Green'}"
+    		name="favoriteColor"
+            emptyOption="true"
+            headerKey="None"
+            headerValue="None"/>
+
+    <ww:select
+    		tooltip="Choose Your Favourite Language"
+    		label="Favourite Language"
+    		list="favouriteLanguages"
+    		name="favouriteLanguage"
+    		listKey="key"
+    		listValue="description"
+    		emptyOption="true"
+    		headerKey="None"
+    		headerValue="None"/>
+
+    <ww:checkboxlist
+    		tooltip="Choose your Friends"
+    		label="Friends"
+    		list="{'Patrick', 'Jason', 'Jay', 'Toby', 'Rene'}"
+    		name="friends"/>
+
+    <ww:checkbox
+    		tooltip="Confirmed that your are Over 18"
+    		label="Age 18+"
+    		name="legalAge"/>
+
+    <ww:doubleselect
+    		tooltip="Choose Your State"
+    		label="State"
+    		name="region" list="{'North', 'South'}"
+    		value="'South'"
+    		doubleValue="'Florida'"
+            doubleList="top == 'North' ? {'Oregon', 'Washington'} : {'Texas', 'Florida'}"
+            doubleName="state"
+            headerKey="-1"
+            headerValue="---------- Please Select ----------"
+            emptyOption="true" />
+
+    <ww:doubleselect
+    		tooltip="Choose your Vehical"
+    		label="Favourite Vehical"
+    		name="favouriteVehicalType"
+    		list="vehicalTypeList"
+    		listKey="key"
+    		listValue="description"
+    		value="'MotorcycleKey'"
+    		doubleValue="'YamahaKey'"
+    		doubleList="vehicalSpecificList"
+    		doubleListKey="key"
+    		doubleListValue="description"
+    		doubleName="favouriteVehicalSpecific" headerKey="-1"
+    		headerValue="---------- Please Select ----------"
+    		emptyOption="true" />
+
+    <ww:file
+    		tooltip="Upload Your Picture"
+    		label="Picture"
+    		name="picture" />
+
+    <ww:optiontransferselect
+    		tooltip="Select Your Favourite Cartoon Characters"
+    		label="Favourite Cartoons Characters"
+			name="leftSideCartoonCharacters"
+			leftTitle="Left Title"
+			rightTitle="Right Title"
+			list="{'Popeye', 'He-Man', 'Spiderman'}"
+			multiple="true"
+			headerKey="headerKey"
+			headerValue="--- Please Select ---"
+			emptyOption="true"
+			doubleList="{'Superman', 'Mickey Mouse', 'Donald Duck'}"
+			doubleName="rightSideCartoonCharacters"
+			doubleHeaderKey="doubleHeaderKey"
+			doubleHeaderValue="--- Please Select ---"
+			doubleEmptyOption="true"
+			doubleMultiple="true" />
+
+    <ww:submit onclick="alert('Don't Panic! (Just press OK to continue)');" />
+</ww:form>
+
+</body>
+</html>
\ No newline at end of file

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Input.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp Wed Mar
 8 08:22:19 2006
@@ -0,0 +1,42 @@
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+<head>
+<title>Cookbook - Input Form with Select Controls</title>
+</head>
+<body>
+<a href="Home.jsp"><img src="images/return.gif" height="24" width="24" alt="Go Home"
class="icon" /></a>
+<a href="pages/Select/index.jsp"><img src="images/code.gif" height="24" width="24"
alt="Go Home" class="icon" /></a>
+<h1>Input Result</h1>
+<table>
+	<ww:label label="Name" name="name" />
+	<ww:label label="Birthday" name="birthday" />
+	<ww:label label="Biography" name="bio" />
+	<ww:label label="Favourite Color" name="favouriteColor" />
+	<ww:label label="Friends" name="friends" />
+	<ww:label label="Legal Age" name="legalAge" />
+	<ww:label label="Region" name="region" />
+	<ww:label label="State" name="state" />
+	<ww:label label="Picture" name="picture" />
+	<ww:label label="Favourite Language" name="favouriteLanguage" />
+	<ww:label label="Favourite Vehical Type" name="favouriteVehicalType" />
+	<ww:label label="Favourite Vehical Specific" name="favouriteVehicalSpecific" />
+	<tr>
+		<td>Favourite Cartoon Characters (Left):</td>
+		<td>
+			<ww:iterator value="leftSideCartoonCharacters" status="stat">
+				<ww:property value="%{#stat.count}" />.<ww:property value="top" />&nbsp;
+			</ww:iterator>
+		</td>
+	</tr>
+	<tr>
+		<td>Favourite Cartoon Characters (Right):</td>
+		<td>
+			<ww:iterator value="rightSideCartoonCharacters" status="stat">
+				<ww:property value="%{#stat.count}" />.<ww:property value="top" />&nbsp;
+			</ww:iterator>
+		</td>
+	</tr>
+
+</table>
+</body>
+</html>

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/Result.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp?rev=384251&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp Wed Mar 
8 08:22:19 2006
@@ -0,0 +1,38 @@
+<%@taglib uri="/webwork" prefix="ww" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Source Code for Input Form with Select Controls</title>
+<link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css" />"
>
+</head>
+<body>
+
+<ww:url id="input_exe" action="Select!setup" />
+
+<ww:a href="%{input_exe}">
+    <img src="<ww:url value="/images/execute.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
+</ww:a>
+
+<a href="<ww:url value="/Home.jsp" />" >
+    <img src="<ww:url value="/images/return.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
+</a>
+
+<h1>Source Code for Input Select Form</h1>
+<hr noshade="noshade"/>
+
+<h2>Server Pages</h2>
+<p><a href="<ww:url value="/View.jsp?src=/pages/Select/Select.jsp"/>">Select.jsp</a></p>
+<p><a href="<ww:url value="/View.jsp?src=/page/Select/Result.jsp"/>">Result.jsp</a></p>
+
+<h2>Actions</h2>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/src/java/cookbook/Select.java"/>">Select.java</a></p>
+
+<h2>Configuration files</h2>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/classes/xwork-Select.xml"/>">xwork-Select.xml</a></p>
+
+<h2>Other source files</h2>
+<p>None</p>
+
+</body>
+</html>
\ No newline at end of file

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Select/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Input.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Input.jsp?rev=384251&r1=384250&r2=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Input.jsp (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Input.jsp Wed Mar 
8 08:22:19 2006
@@ -1,11 +1,11 @@
 <%@taglib prefix="ww" uri="/webwork" %>
 <html>
     <head>
-        <title>Cookbook - Input Form</title>
+        <title>Cookbook - Simple Input Form</title>
         <ww:head/>
     </head>
     <body>
-        <ww:form action="InputResult">
+        <ww:form action="SimpleResult">
             <ww:textfield label="Please enter your name" name="name" />
             <ww:submit />
         </ww:form>

Modified: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/index.jsp?rev=384251&r1=384250&r2=384251&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/index.jsp (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/index.jsp Wed Mar 
8 08:22:19 2006
@@ -8,7 +8,7 @@
 </head>
 <body>
 
-<ww:url id="input_exe" action="Input!setup" />
+<ww:url id="input_exe" action="Simple!setup" />
 
 <ww:a href="%{input_exe}">
     <img src="<ww:url value="/images/execute.gif"/>" alt="" hspace="4" border="0"
 align="top" class="inline" />
@@ -22,14 +22,14 @@
 <hr noshade="noshade"/>
 
 <h2>Server Pages</h2>
-<p><a href="<ww:url value="/View.jsp?src=/pages/input/Input.jsp"/>">Input.jsp</a></p>
-<p><a href="<ww:url value="/View.jsp?src=/pages/input/Result.jsp"/>">Result.jsp</a></p>
+<p><a href="<ww:url value="/View.jsp?src=/pages/Simple/Input.jsp"/>">Input.jsp</a></p>
+<p><a href="<ww:url value="/View.jsp?src=/pages/Simple/Result.jsp"/>">Result.jsp</a></p>
 
 <h2>Actions</h2>
-<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/src/java/cookbook/Input.java"/>">Input.java</a></p>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/src/java/cookbook/Simple.java"/>">Input.java</a></p>
 
 <h2>Configuration files</h2>
-<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/classes/xwork-Input.xml"/>">xwork-Input.xml</a></p>
+<p><a href="<ww:url value="/View.jsp?src=/WEB-INF/classes/xwork-Simple.xml"/>">xwork-Input.xml</a></p>
 
 <h2>Other source files</h2>
 <p>None</p>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message