You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ts...@apache.org on 2007/11/10 03:18:37 UTC
svn commit: r593719 - in /struts/sandbox/trunk/struts2-juel-plugin-example:
pom.xml src/main/webapp/WEB-INF/web.xml src/main/webapp/example/survey.jsp
Author: tschneider
Date: Fri Nov 9 18:18:36 2007
New Revision: 593719
URL: http://svn.apache.org/viewvc?rev=593719&view=rev
Log:
changes based on changes to the uel value stack
Modified:
struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml
struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/web.xml
struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp
Modified: struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml?rev=593719&r1=593718&r2=593719&view=diff
==============================================================================
--- struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml (original)
+++ struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml Fri Nov 9 18:18:36 2007
@@ -13,10 +13,11 @@
<artifactId>struts2-juel-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
- <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>
+ </dependency>-->
</dependencies>
</project>
Modified: struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/web.xml?rev=593719&r1=593718&r2=593719&view=diff
==============================================================================
--- struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/web.xml (original)
+++ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/web.xml Fri Nov 9 18:18:36 2007
@@ -2,19 +2,27 @@
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
- <display-name>Struts2 Juel Plugin Example</display-name>
+ <display-name>Struts2 Juel Plugin Example</display-name>
- <filter>
- <filter-name>struts2</filter-name>
- <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
- </filter>
+ <filter>
+ <filter-name>struts2</filter-name>
+ <filter-class>
+ org.apache.struts2.dispatcher.FilterDispatcher
+ </filter-class>
+ </filter>
- <filter-mapping>
- <filter-name>struts2</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
+ <filter-mapping>
+ <filter-name>struts2</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
- <welcome-file-list>
- <welcome-file>index.html</welcome-file>
- </welcome-file-list>
+ <listener>
+ <listener-class>
+ com.googlecode.struts2juel.contextlistener.UelServletContextListener
+ </listener-class>
+ </listener>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
</web-app>
Modified: struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp?rev=593719&r1=593718&r2=593719&view=diff
==============================================================================
--- struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp (original)
+++ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp Fri Nov 9 18:18:36 2007
@@ -10,10 +10,10 @@
<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: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>