Author: musachy
Date: Tue Nov  3 07:24:12 2009
New Revision: 832320

URL: http://svn.apache.org/viewvc?rev=832320&view=rev
Log:
picking up

Modified:
    struts/sandbox/trunk/struts2-uel-plugin-example/pom.xml
    
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/java/example/SurveyAction.java
    
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/resources/struts.xml
    
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/webapp/example/survey.jsp

Modified: struts/sandbox/trunk/struts2-uel-plugin-example/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-uel-plugin-example/pom.xml?rev=832320&r1=832319&r2=832320&view=diff
==============================================================================
--- struts/sandbox/trunk/struts2-uel-plugin-example/pom.xml (original)
+++ struts/sandbox/trunk/struts2-uel-plugin-example/pom.xml Tue Nov  3 07:24:12 
2009
@@ -1,23 +1,35 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <groupId>org.apache.struts2.uelplugin</groupId>
-       <artifactId>struts2-uel-plugin-example</artifactId>
-       <version>1.0.0-SNAPSHOT</version>
-       <packaging>war</packaging>
-       <name>Struts 2 Unified EL Plugin Example</name>
-       <dependencies>
-               <dependency>
-                       <groupId>org.apache.struts2.uelplugin</groupId>
-                       <artifactId>struts2-uel-plugin</artifactId>
-                       <version>1.0.0-SNAPSHOT</version>
-               </dependency>
-               <!-- Uncomment this to run in a < JSP 2.1 jsp engine. -->
-<!--    <dependency>
-                       <groupId>de.odysseus.juel</groupId>
-                       <artifactId>juel</artifactId>
-                       <version>2.1.0</version>
-               </dependency>-->
-       </dependencies>
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.struts2.uelplugin</groupId>
+    <artifactId>struts2-uel-plugin-example</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>war</packaging>
+    <name>Struts 2 Unified EL Plugin Example</name>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.struts2.uelplugin</groupId>
+            <artifactId>struts2-uel-plugin</artifactId>
+            <version>1.0.0-SNAPSHOT</version>
+        </dependency>
+
+
+        <!-- Uncomment this to run in a < JSP 2.1 jsp engine. -->
+        <!--    <dependency>
+              <groupId>de.odysseus.juel</groupId>
+              <artifactId>juel</artifactId>
+              <version>2.1.0</version>
+          </dependency>-->
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>7.0.0pre3</version>
+            </plugin>
+        </plugins>
+    </build>
 </project>

Modified: 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/java/example/SurveyAction.java
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-uel-plugin-example/src/main/java/example/SurveyAction.java?rev=832320&r1=832319&r2=832320&view=diff
==============================================================================
--- 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/java/example/SurveyAction.java
 (original)
+++ 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/java/example/SurveyAction.java
 Tue Nov  3 07:24:12 2009
@@ -11,7 +11,7 @@
 
        public String edit() {
                surveyBean.setAge(22);
-               surveyBean.setFirstName("Musachy");
+               surveyBean.setFirstName("Lex");
                surveyBean.setBirthdate(new Date());
                return SUCCESS;
        }

Modified: 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/resources/struts.xml
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-uel-plugin-example/src/main/resources/struts.xml?rev=832320&r1=832319&r2=832320&view=diff
==============================================================================
--- 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/resources/struts.xml 
(original)
+++ 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/resources/struts.xml 
Tue Nov  3 07:24:12 2009
@@ -1,21 +1,17 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE struts PUBLIC
-    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
-    "http://struts.apache.org/dtds/struts-2.0.dtd";>
+<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
+        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+        "http://struts.apache.org/dtds/struts-2.0.dtd";>
 
 <struts>
-       <package name="example" namespace="/example"
-               extends="struts-default">
+    <package name="example" namespace="/example" extends="uel-default">
 
-               <action name="SurveyEdit"
-                       class="example.SurveyAction" method="edit">
-                       <result name="success">/example/survey.jsp</result>
-               </action>
+        <action name="SurveyEdit" class="example.SurveyAction" method="edit">
+            <result name="success">/example/survey.jsp</result>
+        </action>
 
-               <action name="SurveySave"
-                       class="example.SurveyAction" method="save">
-                       <result 
name="success">/example/surveyResults.jsp</result>
-               </action>
+        <action name="SurveySave" class="example.SurveyAction" method="save">
+            <result name="success">/example/surveyResults.jsp</result>
+        </action>
 
-       </package>
+    </package>
 </struts>

Modified: 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/webapp/example/survey.jsp
URL: 
http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-uel-plugin-example/src/main/webapp/example/survey.jsp?rev=832320&r1=832319&r2=832320&view=diff
==============================================================================
--- 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/webapp/example/survey.jsp
 (original)
+++ 
struts/sandbox/trunk/struts2-uel-plugin-example/src/main/webapp/example/survey.jsp
 Tue Nov  3 07:24:12 2009
@@ -1,6 +1,6 @@
 <%@ page contentType="text/html; charset=UTF-8" %>
-<%@ taglib prefix="s" uri="/struts-tags" %>
-
+<%@ taglib prefix="s" uri="/struts-tags" %>
+
 <html>
 <head>
     <title>Survey</title>
@@ -8,14 +8,15 @@
 
 <body>
 <h3>Please fill out Survey</h3>
-<p>
-  <s:form action="SurveySave" method="post">
-       <s:textfield label="First Name" 
name="#{surveyBean.firstName}"></s:textfield>
-       <s:textfield label="Last Name" 
name="#{surveyBean.lastName}"></s:textfield>
-       <s:textfield label="Age" name="#{surveyBean.age}"></s:textfield>
-       <s:textfield label="Birthday" 
name="#{surveyBean.birthdate}"></s:textfield>
-       <s:submit value="Submit"></s:submit>
-  </s:form>
+
+<p>
+    <s:form action="SurveySave" method="get">
+        <s:textfield label="First Name" 
name="#{surveyBean.firstName}"></s:textfield>
+        <s:textfield label="Last Name" 
name="#{surveyBean.lastName}"></s:textfield>
+        <s:textfield label="Age" name="#{surveyBean.age}"></s:textfield>
+        <s:textfield label="Birthday" 
name="#{surveyBean.birthdate}"></s:textfield>
+        <s:submit value="Submit"/>
+    </s:form>
 </p>
 </body>
 </html>


Reply via email to