struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hus...@apache.org
Subject svn commit: r385378 - in /struts/sandbox/trunk/action2/apps: blank/src/java/blank2/ blank/src/webapp/pages/ cookbook/src/java/cookbook2/actiontag/ cookbook/src/java/cookbook2/pojo/ cookbook/src/webapp/ cookbook/src/webapp/WEB-INF/classes/ cookbook/src/...
Date Sun, 12 Mar 2006 22:35:15 GMT
Author: husted
Date: Sun Mar 12 14:35:13 2006
New Revision: 385378

URL: http://svn.apache.org/viewcvs?rev=385378&view=rev
Log:
Action2 Apps
* Add POJO example 
* Rename xwork configuration files to match convention for validator files. 

Added:
    struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java   (with props)
    struts/sandbox/trunk/action2/apps/blank/src/webapp/pages/Hello.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java   (with
props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/ActionTag-confg.xml
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Home-config.xml
      - copied unchanged from r385358, struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Home.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Pojo-config.xml
  (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Select-config.xml
      - copied unchanged from r385281, struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Simple-config.xml
      - copied unchanged from r385281, struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/ActionTag/index.jsp   (with
props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Input.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Result.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/index.jsp   (with props)
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Result.jsp   (with
props)
Removed:
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Hello.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Home.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Select.xml
    struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/xwork-Simple.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

Added: struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java (added)
+++ struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java Sun Mar 12 14:35:13
2006
@@ -0,0 +1,18 @@
+package blank2;
+
+import com.opensymphony.xwork.ActionSupport;
+
+/**
+ * Utilize the SUCCESS result.
+ */
+public class Home extends ActionSupport {
+
+    /**
+     * Return the default SUCCESS token.
+     *
+     * @return {@link #SUCCESS}
+     */
+    public String execute() throws Exception {
+        return SUCCESS;
+    }
+}

Propchange: struts/sandbox/trunk/action2/apps/blank/src/java/blank2/Home.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/blank/src/webapp/pages/Hello.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/blank/src/webapp/pages/Hello.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/blank/src/webapp/pages/Hello.jsp (added)
+++ struts/sandbox/trunk/action2/apps/blank/src/webapp/pages/Hello.jsp Sun Mar 12 14:35:13
2006
@@ -0,0 +1,9 @@
+<html>
+<head>
+    <title>Welcome</title>
+</head>
+
+<body>
+<h1>Don't panic! Struts is mostly harmless ... </h1>
+</body>
+</html>
\ No newline at end of file

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

Added: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml
Sun Mar 12 14:35:13 2006
@@ -0,0 +1,49 @@
+<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
+
+<validators>
+    <field name="firstname">
+        <field-validator type="requiredstring">
+            <message>You must enter a first name</message>
+        </field-validator>
+    </field>
+
+    <field name="lastname">
+        <field-validator type="requiredstring">
+            <message>You must enter a last name</message>
+        </field-validator>
+    </field>
+
+    <field name="username">
+        <field-validator type="email">
+            <message>You must enter a valid email address</message>
+        </field-validator>
+    </field>
+
+    <field name="extension">
+        <field-validator type="requiredstring">
+            <message>You must enter a telephone extension</message>
+        </field-validator>
+    </field>
+
+    <field name="hired">
+        <field-validator type="date">
+            <param name="min">07/25/2005</param>
+            <message>Hire date must be after 27 Jan 2005</message>
+        </field-validator>
+    </field>
+
+    <field name="hours">
+        <field-validator type="int">
+            <param name="min">1</param>
+            <param name="max">40</param>
+            <message>Hours must between 1 and 40, inclusive></message>
+        </field-validator>
+    </field>
+
+    <field name="editor">
+        <field-validator type="bool">
+            <message>Editor must be TRUE or FALSE</message>
+        </field-validator>
+    </field>
+
+</validators>

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/actiontag/Result-validation.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java
Sun Mar 12 14:35:13 2006
@@ -0,0 +1,77 @@
+package cookbook2.pojo;
+
+import java.util.Date;
+
+public class DirectoryEntry {
+
+    private String firstname;
+
+    private String lastname;
+
+    private String extension;
+
+    private String username;
+
+    private Date hired;
+
+    private Integer hours;
+
+    private Boolean editor;
+
+    public String getFirstname() {
+        return firstname;
+    }
+
+    public void setFirstname(String firstname) {
+        this.firstname = firstname;
+    }
+
+    public String getLastname() {
+        return lastname;
+    }
+
+    public void setLastname(String lastname) {
+        this.lastname = lastname;
+    }
+
+    public String getExtension() {
+        return extension;
+    }
+
+    public void setExtension(String extension) {
+        this.extension = extension;
+    }
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public Date getHired() {
+        return hired;
+    }
+
+    public void setHired(Date hired) {
+        this.hired = hired;
+    }
+
+    public Integer getHours() {
+        return hours;
+    }
+
+    public void setHours(Integer hours) {
+        this.hours = hours;
+    }
+
+    public Boolean getEditor() {
+        return editor;
+    }
+
+    public void setEditor(Boolean editor) {
+        this.editor = editor;
+    }
+
+}

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/DirectoryEntry.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java Sun Mar
12 14:35:13 2006
@@ -0,0 +1,13 @@
+package cookbook2.pojo;
+
+import com.opensymphony.xwork.ModelDriven;
+import com.opensymphony.xwork.ActionSupport;
+
+public class Result extends ActionSupport implements ModelDriven {
+
+    private DirectoryEntry directoryEntry = new DirectoryEntry();
+
+    public Object getModel() {
+        return directoryEntry;
+    }
+}

Propchange: struts/sandbox/trunk/action2/apps/cookbook/src/java/cookbook2/pojo/Result.java
------------------------------------------------------------------------------
    svn:eol-style = native

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=385378&r1=385377&r2=385378&view=diff
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp (original)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/Home.jsp Sun Mar 12 14:35:13 2006
@@ -84,13 +84,27 @@
 
 
   <tr valign="top">
-    <td>Simple Form using a POJO</td>
-    <td>
-        [TODO]
-	</td>
-    <td>
-        [TODO]
-	</td>
+    <td>Input Form using a POJO</td>
+      <td>
+
+          <ww:url id="Pojo_Open" action="Open!input" namespace="/Pojo" />
+          <ww:a href="%{Pojo_Open}">
+              <ww:include value="/icon-open.jsp" />
+          </ww:a>
+          <ww:a href="%{Pojo_Open}">Execute</ww:a>
+
+      </td>
+      <td>
+
+          <ww:url id="Pojo_View" action="View" namespace="/Pojo" />
+          <ww:a href="%{Pojo_View}">
+              <ww:include value="/icon-view.jsp" />
+          </ww:a>
+          <ww:a href="%{Pojo_View}">
+              View Source
+          </ww:a>
+
+      </td>
   </tr>
 
   <tr valign="top">

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/ActionTag-confg.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/ActionTag-confg.xml?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/ActionTag-confg.xml
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/ActionTag-confg.xml
Sun Mar 12 14:35:13 2006
@@ -0,0 +1,55 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
+
+<xwork>
+
+    <package name="ActionTag" extends="webwork-default" namespace="/ActionTag">
+
+        <action name="Open" class="cookbook2.actiontag.Result">
+            <result>/pages/ActionTag/Result.jsp</result>
+            <result name="input">/pages/ActionTag/Input.jsp</result>
+        </action>
+
+        <action name="View">
+            <result>/pages/ActionTag/index.jsp</result>
+        </action>
+
+        <action name="View-Input">
+            <result type="plaintext">/pages/ActionTag/Input.jsp</result>
+        </action>
+
+        <action name="languages" class="cookbook2.actiontag.Languages">
+            <result>/pages/ActionTag/languages.jsp</result>
+        </action>
+
+        <action name="colors">
+            <result>/pages/ActionTag/colors.jsp</result>
+        </action>
+
+        <action name="View-Result">
+            <result type="plaintext">/pages/ActionTag/Result.jsp</result>
+        </action>
+
+        <action name="View-Colors">
+            <result type="plaintext">/pages/ActionTag/colors.jsp</result>
+        </action>
+
+        <action name="View-Languages">
+            <result type="plaintext">/pages/ActionTag/languages.jsp</result>
+        </action>
+
+        <action name="View-Action">
+            <result type="plaintext">/WEB-INF/src/java/cookbook2/actiontag/Result.java</result>
+        </action>
+
+        <action name="View-Action-Languages">
+            <result type="plaintext">/WEB-INF/src/java/cookbook2/actiontag/Languages.java</result>
+        </action>
+
+        <action name="View-Config">
+            <result type="plaintext">/WEB-INF/classes/xwork-ActionTag.xml</result>
+        </action>
+
+    </package>
+
+</xwork>
+

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

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Pojo-config.xml
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Pojo-config.xml?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Pojo-config.xml
(added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/WEB-INF/classes/Pojo-config.xml
Sun Mar 12 14:35:13 2006
@@ -0,0 +1,33 @@
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
+
+<xwork>
+
+    <package name="Pojo" namespace="/Pojo" extends="webwork-default">
+
+        <action name="Open" class="cookbook2.pojo.Result">
+            <result>/pages/Pojo/Result.jsp</result>
+            <result name="input">/pages/Pojo/Input.jsp</result>
+        </action>
+
+        <action name="View">
+            <result>/pages/Pojo/index.jsp</result>
+        </action>
+
+        <action name="View-Input">
+            <result type="plaintext">/pages/Pojo/Input.jsp</result>
+        </action>
+
+        <action name="View-Result">
+            <result type="plaintext">/pages/Pojo/Result.jsp</result>
+        </action>
+
+        <action name="View-Action-Entry">
+            <result type="plaintext">/WEB-INF/src/java/cookbook2/pojo/DirectoryEntry.java</result>
+        </action>
+
+        <action name="View-Config">
+            <result type="plaintext">/WEB-INF/classes/xwork-Pojo.xml</result>
+        </action>
+
+    </package>
+</xwork>

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

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=385378&r1=385377&r2=385378&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 Sun Mar
12 14:35:13 2006
@@ -4,14 +4,16 @@
 
     <include file="webwork-default.xml"/>
 
-    <include file="xwork-Home.xml"/>
+    <include file="Home-config.xml"/>
 
-    <include file="xwork-Hello.xml"/>
+    <include file="Hello-config.xml"/>
 
-    <include file="xwork-Simple.xml"/>
+    <include file="Simple-config.xml"/>
 
-    <include file="xwork-Select.xml"/>
+    <include file="Pojo-config.xml"/>
 
-    <include file="xwork-ActionTag.xml"/>
+    <include file="Select-config.xml"/>
+
+    <include file="ActionTag-config.xml" />
 
 </xwork>

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/ActionTag/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/ActionTag/index.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/ActionTag/index.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/ActionTag/index.jsp Sun Mar
12 14:35:13 2006
@@ -0,0 +1,43 @@
+<%@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 Action as Page Controller</title>
+<link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css" />"
>
+</head>
+<body>
+
+<ww:include value="/header-index.jsp"/>
+
+<h1>Source Code for Action as Page Controller</h1>
+<hr noshade="noshade"/>
+
+<h2>Server Pages</h2>
+<ul><li>
+    <a href="<ww:url action="View-Input"/>">Input.jsp</a>
+</li><li>
+    <a href="<ww:url action="View-Result"/>">Result.jsp</a>
+</li><li>
+    <a href="<ww:url action="View-Colors"/>">colors.jsp</a>
+</li><li>
+    <a href="<ww:url action="View-Languages"/>">languages.jsp</a>
+</li></ul>
+
+<h2>Actions</h2>
+<ul><li>
+    <a href="<ww:url action="View-Action"/>">Result.java</a>
+</li><li>
+    <a href="<ww:url action="View-Action-Languages"/>">Languages.java</a>
+</li></ul>
+
+<h2>Configuration files</h2>
+<ul><li>
+    <a href="<ww:url action="View-Config"/>">xwork-ActionTag.xml</a>
+</li></ul>
+
+<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/ActionTag/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Input.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Input.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Input.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Input.jsp Sun Mar 12
14:35:13 2006
@@ -0,0 +1,51 @@
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+<head>
+    <title>Cookbook - Input Form using a POJO</title>
+    <ww:head/>
+</head>
+
+<body>
+
+<ww:form>
+    <ww:textfield
+    		label="First Name"
+    		name="firstname"
+    		tooltip="Enter your first name here" />
+
+    <ww:textfield
+    		label="Last Name"
+    		name="lastname"
+    		tooltip="Enter your last name here" />
+
+    <ww:textfield
+    		label="Telephone"
+    		name="extension"
+    		tooltip="Enter your office telephone number here" />
+
+    <ww:textfield
+    		label="Email Address"
+    		name="username"
+    		tooltip="Enter your email address here" />
+
+    <ww:datepicker
+    		tooltip="Select your hire date"
+    		label="Hire Date"
+    		name="hired"/>
+
+    <ww:textfield
+    		label="Hours"
+    		name="hours"
+    		tooltip="Enter the number of hours you are scheduled to work" />
+
+    <ww:checkbox
+    		label="Editor?"
+    		name="editor"
+            tooltip="Are you authorized to edit directory entries?"/>
+
+    <ww:submit />
+
+</ww:form>
+
+</body>
+</html>

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

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Result.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Result.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Result.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/Result.jsp Sun Mar 12
14:35:13 2006
@@ -0,0 +1,21 @@
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+    <head>
+        <title>Cookbook - Input Form using a POJO</title>
+        <link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css"
/>" >
+    </head>
+    <body>
+        <ww:include value="/header-result.jsp"/>
+
+        <h1>Input Result</h1>
+        <table>
+	        <ww:label label="First Name" name="firstname" />
+            <ww:label label="Last Name"  name="lastname" />
+            <ww:label label="Telephone"  name="extension" />
+            <ww:label label="User Name"  name="username" />
+            <ww:label label="Hired"      name="hired" />
+            <ww:label label="Hours"      name="hours" />
+            <ww:label label="Editor?"    name="editor" />
+        </table>
+    </body>
+</html>
\ No newline at end of file

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

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/index.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/index.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/index.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Pojo/index.jsp Sun Mar 12
14:35:13 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 Input Form using a POJO</title>
+<link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css" />"
>
+</head>
+<body>
+
+<ww:include value="/header-index.jsp"/>
+
+<h1>Source Code for Input Form using a POJO</h1>
+<hr noshade="noshade"/>
+
+<h2>Server Pages</h2>
+<ul><li>
+    <a href="<ww:url action="View-Input"/>">Input.jsp</a>
+</li><li>
+    <a href="<ww:url action="View-Result"/>">Result.jsp</a>
+</li></ul>
+
+<h2>Actions</h2>
+<ul><li>
+    <a href="<ww:url action="View-Action-Entry"/>">DirectoryEntry.java</a>
+</li></ul>
+
+<h2>Configuration files</h2>
+<ul><li>
+    <a href="<ww:url action="View-Config"/>">xwork-Pojo.xml</a>
+</li></ul>
+
+<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/Pojo/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Added: struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Result.jsp
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Result.jsp?rev=385378&view=auto
==============================================================================
--- struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Result.jsp (added)
+++ struts/sandbox/trunk/action2/apps/cookbook/src/webapp/pages/Simple/Result.jsp Sun Mar
12 14:35:13 2006
@@ -0,0 +1,14 @@
+<%@taglib prefix="ww" uri="/webwork" %>
+<html>
+    <head>
+        <title>Cookbook - Simple Input Form using Action Properties</title>
+    </head>
+    <link rel="stylesheet" type="text/css" href="<ww:url value="/css/cookbook.css"
/>" >
+    <body>
+        <ww:include value="/header-result.jsp"/>
+
+         <h1>Don't panic <ww:property value="name" />!
+             Struts is mostly harmless ...</h1>
+
+    </body>
+</html>
\ No newline at end of file

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



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


Mime
View raw message