[CONF] Confluence Changes in the last 24 hours
- This is a daily summary of all recent changes in Confluence. - Updated Spaces: - Apache Sling (SLING) http://cwiki.apache.org/confluence/display/SLING | |-Pages Added or Edited in This Space |-- Module Reorganization Proposal was created by fmeschbe (02:21 PM). | http://cwiki.apache.org/confluence/display/SLING/Module+Reorganization+Proposal |-- Incubator Status Report (November 2007) was last edited by fmeschbe (11:27 AM). | http://cwiki.apache.org/confluence/display/SLING/Incubator+Status+Report+%28November+2007%29 |-- Incubator Status Report (December 2007) was created by fmeschbe (11:17 AM). | http://cwiki.apache.org/confluence/display/SLING/Incubator+Status+Report+%28December+2007%29 Apache Struts 2 Plugin Registry (S2PLUGINS) http://cwiki.apache.org/confluence/display/S2PLUGINS | |-Pages Added or Edited in This Space |-- JUEL plugin was created by [EMAIL PROTECTED] (11:06 AM). | http://cwiki.apache.org/confluence/display/S2PLUGINS/JUEL+plugin Apache ActiveMQ CPP (AMQCPP) http://cwiki.apache.org/confluence/display/AMQCPP | |-Pages Added or Edited in This Space |-- ActiveMQ-CPP 2.1.1 Release was last edited by tabish121 (08:50 AM). | http://cwiki.apache.org/confluence/display/AMQCPP/ActiveMQ-CPP+2.1.1+Release Apache Directory SandBox (DIRxSBOX) http://cwiki.apache.org/confluence/display/DIRxSBOX | |-Pages Added or Edited in This Space |-- Draft - Building Apache Directory Studio (Maven) was created by felixk (02:04 AM). | http://cwiki.apache.org/confluence/display/DIRxSBOX/Draft+-+Building+Apache+Directory+Studio+%28Maven%29 Apache ServiceMix (SM) http://cwiki.apache.org/confluence/display/SM | |-Pages Added or Edited in This Space |-- How do I integrate the servicemix-jms component with WebsphereMQ? was last edited by bsnyder (10:19 AM). | http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=64340 Tuscany Wiki (TUSCANYWIKI) http://cwiki.apache.org/confluence/display/TUSCANYWIKI | |-Pages Added or Edited in This Space |-- SCA Native in Chinese was last edited by [EMAIL PROTECTED] (11:10 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Native+in+Chinese |-- SCA Java in Chinese was last edited by [EMAIL PROTECTED] (11:06 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Java+in+Chinese |-- SDO Java Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (11:00 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SDO+Java+Subproject+Menu+in+Chinese |-- SDO C++ Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (10:58 PM). | http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=69817 |-- SCA Native Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (10:57 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Native+Subproject+Menu+in+Chinese |-- SCA Java Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (10:56 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Java+Subproject+Menu+in+Chinese |-- DAS Java Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (10:54 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/DAS+Java+Subproject+Menu+in+Chinese |-- DAS C++ Subproject Menu in Chinese was last edited by [EMAIL PROTECTED] (10:52 PM). | http://cwiki.apache.org/confluence/pages/viewpage.action?pageId=69812 |-- SCA Overview in Chinese was last edited by [EMAIL PROTECTED] (10:50 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+Overview+in+Chinese |-- Apache Tuscany copyright in Chinese was last edited by [EMAIL PROTECTED] (10:23 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Apache+Tuscany+copyright+in+Chinese |-- SCA General Menu in Chinese was last edited by [EMAIL PROTECTED] (10:12 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SCA+General+Menu+in+Chinese |-- SDO General Menu in Chinese was last edited by [EMAIL PROTECTED] (10:12 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/SDO+General+Menu+in+Chinese |-- DAS Lite CPlus Menu in Chinese was last edited by [EMAIL PROTECTED] (10:10 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/DAS+Lite+CPlus+Menu+in+Chinese |-- DAS Release Process Menu in Chinese was last edited by [EMAIL PROTECTED] (10:06 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/DAS+Release+Process+Menu+in+Chinese |-- DAS RDB Menu in Chinese was last edited by [EMAIL PROTECTED] (10:05 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/DAS+RDB+Menu+in+Chinese |-- DAS Java Menu in Chinese was last edited by [EMAIL PROTECTED] (09:59 PM). | http://cwiki.apache.org/confluence/display/TUSCANYWIKI/DAS+Java+Menu+in+
Issues Opened: week of 2007-11-05
Struts2 - Monday, November 5, 2007 12 opened in last 7 days [WW-2290] CLONE -action-tag will not call action method from a jsp page that is rendered from an "input" result Jameel Gbajabiamila - Bug - [] http://issues.apache.org/struts/browse/WW-2290 [WW-2277] Using wildcards on validation field names Nestor Boscan - Improvement - [] http://issues.apache.org/struts/browse/WW-2277 [WW-2292] Validation occurs without need the @Validation annotation with Zero Configuration Jason Douglas de Oliveira - Bug - [] http://issues.apache.org/struts/browse/WW-2292 [WW-2281] When i refresh a div using a submit button with targets => the content in the div display an error ("undefined") Francisco Trujillo - Bug - [] http://issues.apache.org/struts/browse/WW-2281 [WW-2286] Apply patch to Struts2 Dojo plugin module on correctness issues reported by FindBugs Giovanni Azua Garcia - Bug - [] http://issues.apache.org/struts/browse/WW-2286 [WW-2283] Store action name from struts.xml in ActionConfig John Lindal - Improvement - [] http://issues.apache.org/struts/browse/WW-2283 [WW-2284] Struts2 "EL" Taglib Ted Husted - New Feature - [] http://issues.apache.org/struts/browse/WW-2284 [WW-2278] Move S2 Tags into a plugin Ted Husted - Task - [] http://issues.apache.org/struts/browse/WW-2278 [WW-2291] XSLTResult fails when a direct connection to Internet is not available Antonio Petrelli - Bug - [] http://issues.apache.org/struts/browse/WW-2291 [WW-2287] Conversion error by date fields in collections for non-english locale Tamas Ruff - Bug - [] http://issues.apache.org/struts/browse/WW-2287 [WW-2285] Apply patch to Struts2 core module on correctness issues reported by FindBugs Giovanni Azua Garcia - Bug - [] http://issues.apache.org/struts/browse/WW-2285 [WW-2293] Struts 2 Blank archetype from Maven repository will not run on Jetty Peter Milne - Bug - [] http://issues.apache.org/struts/browse/WW-2293
svn commit: r591939 - /struts/struts2/trunk/apps/portlet/pom.xml
Author: nilsga Date: Mon Nov 5 01:57:38 2007 New Revision: 591939 URL: http://svn.apache.org/viewvc?rev=591939&view=rev Log: WW-2295 Exclude servlet-api from beeing included from commons-digester. Modified: struts/struts2/trunk/apps/portlet/pom.xml Modified: struts/struts2/trunk/apps/portlet/pom.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/pom.xml?rev=591939&r1=591938&r2=591939&view=diff == --- struts/struts2/trunk/apps/portlet/pom.xml (original) +++ struts/struts2/trunk/apps/portlet/pom.xml Mon Nov 5 01:57:38 2007 @@ -39,38 +39,59 @@ scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/portlet/ http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/portlet/ - - - - pluto - - - - - maven-war-plugin - - ${project.build.directory}/pluto-resources/web.xml - - - - - org.apache.pluto - maven-pluto-plugin - 1.1.3 - - - generate-resources - -assemble - - - - - - - - - + + + + pluto + + + + + maven-war-plugin + + ${project.build.directory}/pluto-resources/web.xml + + + + + org.apache.pluto + maven-pluto-plugin + 1.1.3 + + + generate-resources + + assemble + + + + + +org.mortbay.jetty +maven-jetty-plugin + + ${project.build.directory}/pluto-resources/web.xml + src/main/webapp/WEB-INF/jetty-pluto-web-default.xml + + + org.apache.pluto.embedded.portletId +StrutsPortlet + + + + + + + + + com.bekk.boss + maven-jetty-pluto-embedded + 1.0 + + + + + portlet-api @@ -108,6 +129,12 @@ commons-digester commons-digester 1.8 + + + javax.servlet + servlet-api + + commons-fileupload @@ -130,7 +157,40 @@ commons-lang 2.0 - + + + org.mortbay.jetty + jetty + 6.1.4rc0 + test + + + +net.sourceforge.jwebunit +jwebunit-htmlunit-plugin +1.4.1 +test + + + + com.bekk.boss + maven-jetty-pluto-embedded + 1.0 + test + + + + org.mortbay.jetty + jsp-2.1 + 6.1.4rc0 + test + + + + commons-lang + commons-lang + 2.1 +
svn commit: r591942 - in /struts/struts2/trunk/apps/portlet: ./ src/main/java/org/apache/struts2/portlet/example/ src/main/resources/ src/main/resources/org/apache/struts2/portlet/example/ src/main/we
Author: nilsga Date: Mon Nov 5 02:06:31 2007 New Revision: 591942 URL: http://svn.apache.org/viewvc?rev=591942&view=rev Log: WW-2296 Added jetty-pluto embedded to the sample application. Also added some new samples and a new integration test. Added: struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleSubmitToSelfWithValidation.jsp struts/struts2/trunk/apps/portlet/src/test/ struts/struts2/trunk/apps/portlet/src/test/java/ struts/struts2/trunk/apps/portlet/src/test/java/JettyPlutoLauncher.java struts/struts2/trunk/apps/portlet/src/test/java/org/ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/Struts2PortletTest.java Modified: struts/struts2/trunk/apps/portlet/ (props changed) struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp Propchange: struts/struts2/trunk/apps/portlet/ -- --- svn:ignore (original) +++ svn:ignore Mon Nov 5 02:06:31 2007 @@ -2,3 +2,6 @@ *.ipr *.iml target +.settings +.classpath +.project Modified: struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java?rev=591942&r1=591941&r2=591942&view=diff == --- struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java (original) +++ struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java Mon Nov 5 02:06:31 2007 @@ -20,18 +20,17 @@ */ package org.apache.struts2.portlet.example; +import org.apache.struts2.dispatcher.DefaultActionSupport; + import com.opensymphony.xwork2.ActionSupport; /** */ -public class FormExample extends ActionSupport { +public class FormExample extends DefaultActionSupport { String firstName = null; String lastName = null; -public String execute() throws Exception { -// TODO Auto-generated method stub -return super.execute(); -} + public String getFirstName() { return firstName; } @@ -43,5 +42,9 @@ } public void setLastName(String lastName) { this.lastName = lastName; +} + +public String displayResult() { + return "displayResult"; } } Added: struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml?rev=591942&view=auto == --- struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml (added) +++ struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml Mon Nov 5 02:06:31 2007 @@ -0,0 +1,13 @@ +http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> + + + +You must enter a first name + + + + +You must enter a last name + + + Modified: struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml?rev=591942&r1=591941&r2=591942&view=diff == --- struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml (original) +++ struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml Mon Nov 5 02:06:31 2007 @@ -28,6 +28,21 @@ + + + /WEB-INF/view/formExa
[OSS Bamboo] Struts 2 SVN - Main Build build 596 has FAILED (6 tests failed). Change made by Nils-Helge Garli
The project Struts 2 SVN - Main Build has the following 1 change by 1 author: *Nils-Helge Garli* made the following changes at Comment: WW-2296 Added jetty-pluto embedded to the sample application. Also added some new samples and a new integration test. > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test > (591942) > /struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java > (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp > (591942) > /struts/struts2/trunk/apps/portlet (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache (591942) > /struts/struts2/trunk/apps/portlet/src/test (591942) > /struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/JettyPlutoLauncher.java > (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org (591942) > /struts/struts2/trunk/apps/portlet/src/test/java (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleSubmitToSelfWithValidation.jsp > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/Struts2PortletTest.java > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2 (591942) > /struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml (591942) --- The build has 6 failed tests and 718 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-596 to find out more. Thanks, Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 249 has FAILED (6 tests failed). Change made by Nils-Helge Garli
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1 author: *Nils-Helge Garli* made the following changes at Comment: WW-2296 Added jetty-pluto embedded to the sample application. Also added some new samples and a new integration test. > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/jetty-pluto-web-default.xml > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test > (591942) > /struts/struts2/trunk/apps/portlet/src/main/java/org/apache/struts2/portlet/example/FormExample.java > (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/index.jsp > (591942) > /struts/struts2/trunk/apps/portlet (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache (591942) > /struts/struts2/trunk/apps/portlet/src/test (591942) > /struts/struts2/trunk/apps/portlet/src/main/resources/org/apache/struts2/portlet/example/FormExample-formExamplePrg-validation.xml > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/JettyPlutoLauncher.java > (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleInputPrg.jsp > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org (591942) > /struts/struts2/trunk/apps/portlet/src/test/java (591942) > /struts/struts2/trunk/apps/portlet/src/main/webapp/WEB-INF/view/formExampleSubmitToSelfWithValidation.jsp > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/Struts2PortletTest.java > (591942) > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2 (591942) > /struts/struts2/trunk/apps/portlet/src/main/resources/struts-view.xml (591942) --- The build has 6 failed tests and 718 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-249 to find out more. Thanks, Bamboo
svn commit: r591970 - /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java
Author: nilsga Date: Mon Nov 5 04:12:34 2007 New Revision: 591970 URL: http://svn.apache.org/viewvc?rev=591970&view=rev Log: Changed port Modified: struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java Modified: struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java?rev=591970&r1=591969&r2=591970&view=diff == --- struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java (original) +++ struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java Mon Nov 5 04:12:34 2007 @@ -11,7 +11,7 @@ protected Server server; - private int port = 8080; + private int port = 9876; private String contextPath = "/test";
[OSS Bamboo] Struts 2 SVN - Main Build build 597 was SUCCESSFUL (with 724 tests). Change made by Nils-Helge Garli
The project Struts 2 SVN - Main Build has the following 1 change by 1 author: *Nils-Helge Garli* made the following changes at Comment: Changed port > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java > (591970) --- All 724 tests passed. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-597 to find out more. Thanks, Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 250 was SUCCESSFUL (with 724 tests). Change made by Nils-Helge Garli
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1 author: *Nils-Helge Garli* made the following changes at Comment: Changed port > /struts/struts2/trunk/apps/portlet/src/test/java/org/apache/struts2/portlet/test/BasePortletTest.java > (591970) --- All 724 tests passed. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-250 to find out more. Thanks, Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build build 598 has FAILED (4 tests failed). Change made by musachy
The project Struts 2 SVN - Main Build has the following 1 change by 1 author: *musachy* made the following changes at Comment: Fix broken links > /struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp (592019) --- The build has 4 failed tests and 720 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-598 to find out more. Thanks, Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 251 has FAILED (2 tests failed). Change made by musachy
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1 author: *musachy* made the following changes at Comment: Fix broken links > /struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp (592019) --- The build has 2 failed tests and 722 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-251 to find out more. Thanks, Bamboo
svn commit: r592019 - /struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp
Author: musachy Date: Mon Nov 5 06:41:30 2007 New Revision: 592019 URL: http://svn.apache.org/viewvc?rev=592019&view=rev Log: Fix broken links Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp Modified: struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp?rev=592019&r1=592018&r2=592019&view=diff == --- struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp (original) +++ struts/struts2/trunk/apps/showcase/src/main/webapp/tags/index.jsp Mon Nov 5 06:41:30 2007 @@ -8,8 +8,8 @@ Tags -Non UI Tags Examples -UI Tags Example +Non UI Tags Examples +UI Tags Example
svn commit: r592047 - in /struts/struts2/trunk/core/src/main/resources/template: css_xhtml/validation.js xhtml/validation.js
Author: musachy Date: Mon Nov 5 07:28:50 2007 New Revision: 592047 URL: http://svn.apache.org/viewvc?rev=592047&view=rev Log: WW-2050 Separate JSONValidationInterceptor from AnnotationValidationInterceptor * Fix functions to display error when doing client/ajax validation Patch provided by Lukasz Racon Modified: struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js struts/struts2/trunk/core/src/main/resources/template/xhtml/validation.js Modified: struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js?rev=592047&r1=592046&r2=592047&view=diff == --- struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js (original) +++ struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js Mon Nov 5 07:28:50 2007 @@ -24,8 +24,9 @@ } function clearErrorMessagesCSS(form) { - // clear out any rows with an "errorFor" attribute - var divs = form.getElementsByTagName("div"); +firstFieldErrorPosition = null; +// clear out any rows with an "errorFor" attribute +var divs = form.getElementsByTagName("div"); var paragraphsToDelete = new Array(); for(var i = 0; i < divs.length; i++) { @@ -59,44 +60,94 @@ } } } - } function addError(e, errorText) { addErrorCSS(e, errorText); } +var firstFieldErrorPosition = null; function addErrorCSS(e, errorText) { try { -var ctrlDiv = e.parentNode; // wwctrl_ div or span -var enclosingDiv = ctrlDiv.parentNode; // wwgrp_ div +if (!e) +return; //ignore errors for fields that are not in the form +var elem = (e.type ? e : e[0]); //certain input types return node list, while we single first node. I.e. set of radio buttons. +var enclosingDiv = findWWGrpNode(elem); // find wwgrp div/span + +//try to focus on first field +var fieldPos = findFieldPosition(elem); +if (fieldPos != null && (firstFieldErrorPosition == null || firstFieldErrorPosition > fieldPos)) { +firstFieldErrorPosition = fieldPos; +} - if (!ctrlDiv || (ctrlDiv.nodeName != "DIV" && ctrlDiv.nodeName != "SPAN") || !enclosingDiv || enclosingDiv.nodeName != "DIV") { - alert("do not validate:" + e.id); - return; - } - +if (!enclosingDiv) { +alert("Could not validate: " + e.id); +return; +} + var label = enclosingDiv.getElementsByTagName("label")[0]; - if (label) { - label.setAttribute("class", "errorLabel"); //standard way.. works for ie mozilla - label.setAttribute("className", "errorLabel"); //ie hack cause ie does not support setAttribute - } - - var firstDiv = enclosingDiv.getElementsByTagName("div")[0]; // either wwctrl_ or wwlbl_ - if (!firstDiv) { - firstDiv = enclosingDiv.getElementsByTagName("span")[0]; - } +if (label) { +label.setAttribute("class", "errorLabel"); //standard way.. works for ie mozilla +label.setAttribute("className", "errorLabel"); //ie hack cause ie does not support setAttribute +} + +var firstCtrNode = findWWCtrlNode(enclosingDiv); // either wwctrl_ or wwlbl_ + var error = document.createTextNode(errorText); var errorDiv = document.createElement("div"); errorDiv.setAttribute("class", "errorMessage");//standard way.. works for ie mozilla errorDiv.setAttribute("className", "errorMessage");//ie hack cause ie does not support setAttribute -errorDiv.setAttribute("errorFor", e.id);; +errorDiv.setAttribute("errorFor", elem.id); errorDiv.appendChild(error); -enclosingDiv.insertBefore(errorDiv, firstDiv); -} catch (e) { -alert(e); +enclosingDiv.insertBefore(errorDiv, firstCtrNode); +} catch (err) { +alert("An exception occurred: " + err.name + ". Error message: " + err.message); } } +function findWWGrpNode(elem) { +while (elem.parentNode) { +elem = elem.parentNode; +if (elem.className && elem.className.match(/wwgrp/)) +return elem; +} +return null; +} + +function findWWCtrlNode(enclosingDiv) { +for(var elem in enclosingDiv.getElementsByTagName("div")) { +if (elem.className && elem.className.match(/(wwlbl|wwctrl)/)) +return elem +} +for(var elem in enclosingDiv.getElementsByTagName("span")) { +if (elem.className && elem.className.match(/(wwlbl|wwctrl)/)) +return elem +} +return enclosingDiv.getElementsByTagName("span")[0]; +} +
[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 252 has FAILED (5 tests failed, 3 failures were new). Change made by musachy
The project Struts 2 SVN - Main Build (Java 6) has the following 1 change by 1 author: *musachy* made the following changes at Comment: WW-2050 Separate JSONValidationInterceptor from AnnotationValidationInterceptor * Fix functions to display error when doing client/ajax validation Patch provided by Lukasz Racon > /struts/struts2/trunk/core/src/main/resources/template/xhtml/validation.js > (592047) > /struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js > (592047) --- The build has 5 failed tests and 719 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-252 to find out more. Thanks, Bamboo
[OSS Bamboo] Struts 2 SVN - Main Build build 599 has FAILED (6 tests failed, 2 failures were new). Change made by musachy
The project Struts 2 SVN - Main Build has the following 1 change by 1 author: *musachy* made the following changes at Comment: WW-2050 Separate JSONValidationInterceptor from AnnotationValidationInterceptor * Fix functions to display error when doing client/ajax validation Patch provided by Lukasz Racon > /struts/struts2/trunk/core/src/main/resources/template/xhtml/validation.js > (592047) > /struts/struts2/trunk/core/src/main/resources/template/css_xhtml/validation.js > (592047) --- The build has 6 failed tests and 718 successful tests. Click http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-599 to find out more. Thanks, Bamboo
svn commit: r592140 - /struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java
Author: musachy Date: Mon Nov 5 12:17:47 2007 New Revision: 592140 URL: http://svn.apache.org/viewvc?rev=592140&view=rev Log: Add "strutsfile" resource loader so vm files in the application(not in the bundles) can be loaded by velocity Modified: struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java Modified: struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java?rev=592140&r1=592139&r2=592140&view=diff == --- struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java (original) +++ struts/sandbox/trunk/struts2-osgi-plugin/src/main/java/org/apache/struts2/osgi/OsgiConfigurationProvider.java Mon Nov 5 12:17:47 2007 @@ -83,7 +83,7 @@ Properties props = new Properties(); props.setProperty("osgi.resource.loader.description","OSGI bundle loader"); props.setProperty("osgi.resource.loader.class", BundleResourceLoader.class.getName()); -props.setProperty(Velocity.RESOURCE_LOADER, "strutsclass,osgi"); +props.setProperty(Velocity.RESOURCE_LOADER, "strutsfile,strutsclass,osgi"); vm.setVelocityProperties(props); }
svn commit: r592142 - /struts/sandbox/trunk/struts2-osgi-plugin/pom.xml
Author: musachy Date: Mon Nov 5 12:18:39 2007 New Revision: 592142 URL: http://svn.apache.org/viewvc?rev=592142&view=rev Log: Updated Felix dep to 1.1.0-SNAPSHOT as the URL loading problems were fixed on Felix trunk Modified: struts/sandbox/trunk/struts2-osgi-plugin/pom.xml Modified: struts/sandbox/trunk/struts2-osgi-plugin/pom.xml URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-osgi-plugin/pom.xml?rev=592142&r1=592141&r2=592142&view=diff == --- struts/sandbox/trunk/struts2-osgi-plugin/pom.xml (original) +++ struts/sandbox/trunk/struts2-osgi-plugin/pom.xml Mon Nov 5 12:18:39 2007 @@ -23,7 +23,7 @@ org.apache.felix org.apache.felix.main -0.9.0-incubator-SNAPSHOT +1.1.0-SNAPSHOT
svn commit: r592241 - /struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/
Author: tschneider Date: Mon Nov 5 19:30:25 2007 New Revision: 592241 URL: http://svn.apache.org/viewvc?rev=592241&view=rev Log: divorced juel from the value stack so we are only dependent on the java el classes Added: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/ExpressionFactoryLocator.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootVariableMapper.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/JuelReflectionProvider.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/JuelValueStack.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/JuelValueStackFactory.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java?rev=592241&r1=592240&r2=592241&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java Mon Nov 5 19:30:25 2007 @@ -1,17 +1,36 @@ package com.googlecode.struts2juel; +import javax.el.ArrayELResolver; +import javax.el.BeanELResolver; +import javax.el.CompositeELResolver; +import javax.el.ELContext; +import javax.el.ELResolver; +import javax.el.FunctionMapper; +import javax.el.ListELResolver; +import javax.el.MapELResolver; +import javax.el.ResourceBundleELResolver; import javax.el.VariableMapper; import com.opensymphony.xwork2.util.CompoundRoot; -import de.odysseus.el.util.SimpleContext; - /** - * An implementation of SimpleContext that knows about the CompoundRoot. + * An implementation of SimpleContext that knows about the ValueStack's CompoundRoot. */ -public class CompoundRootELContext extends SimpleContext { +public class CompoundRootELContext extends ELContext { private VariableMapper variableMapper; +private FunctionMapper functionMapper = new NullFunctionMapper(); +private static final ELResolver DEFAULT_RESOLVER_READ_ONLY = new CompositeELResolver() { + { + add(new CompoundRootELResolver()); + add(new ArrayELResolver(false)); + add(new ListELResolver(false)); + add(new MapELResolver(false)); + add(new ResourceBundleELResolver()); + add(new BeanELResolver(false)); + } + }; + public CompoundRootELContext(CompoundRoot root) { variableMapper = new CompoundRootVariableMapper(root); } @@ -20,4 +39,14 @@ public VariableMapper getVariableMapper() { return variableMapper; } + + @Override + public ELResolver getELResolver() { + return DEFAULT_RESOLVER_READ_ONLY; + } + + @Override + public FunctionMapper getFunctionMapper() { + return functionMapper; + } } Added: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java?rev=592241&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java (added) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java Mon Nov 5 19:30:25 2007 @@ -0,0 +1,51 @@ +package com.googlecode.struts2juel; + +import java.beans.FeatureDescriptor; +import java.util.Iterator; + +import javax.el.ELContext; +import javax.el.ELResolver; + +/** + * An ELResolver capable of resolving + */ +public class CompoundRootELResolver extends ELResolver { + + @Override + public Class getCommonPropertyType(ELContext arg0, Object arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Iterator getFeatureDescriptors(ELContext arg0, + Object arg1) { + // TODO Auto-generated method stub + return null; + } + + @Override + public Class getType(ELContext arg0, Object arg1, Object arg2) { + // TODO Auto-gener
svn commit: r592242 - /struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java
Author: tschneider Date: Mon Nov 5 19:30:50 2007 New Revision: 592242 URL: http://svn.apache.org/viewvc?rev=592242&view=rev Log: oops, didn't get committed Added: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java Added: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java?rev=592242&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java (added) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/NullFunctionMapper.java Mon Nov 5 19:30:50 2007 @@ -0,0 +1,14 @@ +package com.googlecode.struts2juel; + +import java.lang.reflect.Method; + +import javax.el.FunctionMapper; + +public class NullFunctionMapper extends FunctionMapper { + + @Override + public Method resolveFunction(String arg0, String arg1) { + return null; + } + +}
svn commit: r592243 - /struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java
Author: tschneider Date: Mon Nov 5 19:31:35 2007 New Revision: 592243 URL: http://svn.apache.org/viewvc?rev=592243&view=rev Log: tweaks to get the junit to build Modified: struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java?rev=592243&r1=592242&r2=592243&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java Mon Nov 5 19:31:35 2007 @@ -16,7 +16,7 @@ CompoundRoot root = new CompoundRoot(); TestObject obj = new TestObject(); root.add(obj); -JuelValueStack stack = new JuelValueStack(); +JuelValueStack stack = new JuelValueStack(factory); stack.setRoot(root); stack.setValue("${value}", "Hello World"); String value = stack.findString("${value}"); @@ -30,7 +30,7 @@ CompoundRoot root = new CompoundRoot(); TestObject obj = new TestObject(); root.add(obj); -JuelValueStack stack = new JuelValueStack(); +JuelValueStack stack = new JuelValueStack(factory); stack.setRoot(root); stack.setValue("${value}", "Hello World"); String value = stack.findString("${VALUENOTHERE}");
svn commit: r592244 - in /struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel: CompoundRootELContext.java CompoundRootELResolver.java
Author: tschneider Date: Mon Nov 5 19:34:07 2007 New Revision: 592244 URL: http://svn.apache.org/viewvc?rev=592244&view=rev Log: ELResolver not needed Removed: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELResolver.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java?rev=592244&r1=592243&r2=592244&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java Mon Nov 5 19:34:07 2007 @@ -22,7 +22,6 @@ private static final ELResolver DEFAULT_RESOLVER_READ_ONLY = new CompositeELResolver() { { - add(new CompoundRootELResolver()); add(new ArrayELResolver(false)); add(new ListELResolver(false)); add(new MapELResolver(false));
svn commit: r592292 - in /struts/sandbox/trunk/struts2-juel-plugin/src: main/java/com/googlecode/struts2juel/ test/java/com/googlecode/struts2juel/
Author: tschneider Date: Mon Nov 5 21:48:28 2007 New Revision: 592292 URL: http://svn.apache.org/viewvc?rev=592292&view=rev Log: added junit for ExpressionFactoryLocator and minor updates Added: struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/ExpressionFactoryLocatorTest.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/PropertyValueExpression.java struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java?rev=592292&r1=592291&r2=592292&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/CompoundRootELContext.java Mon Nov 5 21:48:28 2007 @@ -20,7 +20,7 @@ private VariableMapper variableMapper; private FunctionMapper functionMapper = new NullFunctionMapper(); -private static final ELResolver DEFAULT_RESOLVER_READ_ONLY = new CompositeELResolver() { +private static final ELResolver DEFAULT_RESOLVER_READ_WRITE = new CompositeELResolver() { { add(new ArrayELResolver(false)); add(new ListELResolver(false)); @@ -41,7 +41,7 @@ @Override public ELResolver getELResolver() { - return DEFAULT_RESOLVER_READ_ONLY; + return DEFAULT_RESOLVER_READ_WRITE; } @Override Modified: struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/PropertyValueExpression.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/PropertyValueExpression.java?rev=592292&r1=592291&r2=592292&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/PropertyValueExpression.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/main/java/com/googlecode/struts2juel/PropertyValueExpression.java Mon Nov 5 21:48:28 2007 @@ -60,7 +60,7 @@ @Override public boolean isReadOnly(ELContext arg0) { - return PropertyUtils.isWriteable(object, property); + return !PropertyUtils.isWriteable(object, property); } @Override Added: struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/ExpressionFactoryLocatorTest.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/ExpressionFactoryLocatorTest.java?rev=592292&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/ExpressionFactoryLocatorTest.java (added) +++ struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/ExpressionFactoryLocatorTest.java Mon Nov 5 21:48:28 2007 @@ -0,0 +1,13 @@ +package com.googlecode.struts2juel; + +import javax.el.ExpressionFactory; + +import junit.framework.TestCase; + +public class ExpressionFactoryLocatorTest extends TestCase { + public void testJuelLoad() { + ExpressionFactory factory = ExpressionFactoryLocator + .locateExpressFactory(); + assertNotNull(factory); + } +} Modified: struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java?rev=592292&r1=592291&r2=592292&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java (original) +++ struts/sandbox/trunk/struts2-juel-plugin/src/test/java/com/googlecode/struts2juel/JuelTest.java Mon Nov 5 21:48:28 2007 @@ -9,6 +9,7 @@ import com.opensymphony.xwork2.util.CompoundRoot; public class JuelTest extends TestCase { + public void testBasicFind() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { ExpressionFactory factory = new de.odysseus.el.ExpressionFactoryImpl();
svn commit: r592293 - /struts/sandbox/trunk/struts2-juel-plugin-example/
Author: tschneider Date: Mon Nov 5 21:49:51 2007 New Revision: 592293 URL: http://svn.apache.org/viewvc?rev=592293&view=rev Log: adding example for juel pluing Added: struts/sandbox/trunk/struts2-juel-plugin-example/
svn commit: r592294 - in /struts/sandbox/trunk/struts2-juel-plugin-example: ./ src/ src/main/ src/main/java/ src/main/java/example/ src/main/resources/ src/main/webapp/ src/main/webapp/WEB-INF/ src/ma
Author: tschneider Date: Mon Nov 5 21:50:39 2007 New Revision: 592294 URL: http://svn.apache.org/viewvc?rev=592294&view=rev Log: adding example for struts2 juel plugin Added: struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml struts/sandbox/trunk/struts2-juel-plugin-example/src/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyAction.java struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyBean.java struts/sandbox/trunk/struts2-juel-plugin-example/src/main/resources/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/resources/struts.xml struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/WEB-INF/ 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/ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/survey.jsp struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/example/surveyResults.jsp struts/sandbox/trunk/struts2-juel-plugin-example/src/main/webapp/index.html Added: 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=592294&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml (added) +++ struts/sandbox/trunk/struts2-juel-plugin-example/pom.xml Mon Nov 5 21:50:39 2007 @@ -0,0 +1,22 @@ +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";> + 4.0.0 + com.googlecode.struts2juel + struts2-juel-plugin-example + 1.0.0-SNAPSHOT + war + Struts 2 Juel Plugin Example + + + com.googlecode.struts2juel + struts2-juel-plugin + 1.0.0-SNAPSHOT + + + de.odysseus.juel + juel + 2.1.0 + + + \ No newline at end of file Added: struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyAction.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyAction.java?rev=592294&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyAction.java (added) +++ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyAction.java Mon Nov 5 21:50:39 2007 @@ -0,0 +1,30 @@ +package example; + +import java.util.Date; +import com.opensymphony.xwork2.ActionSupport; + +/** + * Simple Survey Action. + */ +public class SurveyAction extends ActionSupport { + private SurveyBean surveyBean = new SurveyBean(); + + public String edit() { + surveyBean.setAge(22); + surveyBean.setFirstName("Musachy"); + surveyBean.setBirthdate(new Date()); + return SUCCESS; + } + + public String save() { + return SUCCESS; + } + + public SurveyBean getSurveyBean() { + return surveyBean; + } + + public void setSurveyBean(SurveyBean surveyBean) { + this.surveyBean = surveyBean; + } +} Added: struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyBean.java URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyBean.java?rev=592294&view=auto == --- struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyBean.java (added) +++ struts/sandbox/trunk/struts2-juel-plugin-example/src/main/java/example/SurveyBean.java Mon Nov 5 21:50:39 2007 @@ -0,0 +1,42 @@ +package example; + +import java.util.Date; + +public class SurveyBean { + private String firstName; + private String lastName; + private int age; + private Date birthdate; + + 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; +
svn commit: r592296 - /struts/sandbox/trunk/struts2-juel-plugin/pom.xml
Author: tschneider Date: Mon Nov 5 22:00:05 2007 New Revision: 592296 URL: http://svn.apache.org/viewvc?rev=592296&view=rev Log: updating deps Modified: struts/sandbox/trunk/struts2-juel-plugin/pom.xml Modified: struts/sandbox/trunk/struts2-juel-plugin/pom.xml URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-juel-plugin/pom.xml?rev=592296&r1=592295&r2=592296&view=diff == --- struts/sandbox/trunk/struts2-juel-plugin/pom.xml (original) +++ struts/sandbox/trunk/struts2-juel-plugin/pom.xml Mon Nov 5 22:00:05 2007 @@ -1,69 +1,82 @@ 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";> - 4.0.0 - com.googlecode.struts2juel - struts2-juel-plugin - jar - Struts 2 Juel Plugin - 1.0.0-SNAPSHOT - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - - - - scm:svn:https://struts2scopeplugin.googlecode.com/svn/trunk/ - - - scm:svn:https://struts2scopeplugin.googlecode.com/svn/trunk/ - - http://struts2scopeplugin.googlecode.com/svn/trunk/ - - - - javax.servlet - servlet-api - 2.4 - provided - - - org.apache.struts - struts2-core - 2.1.1-SNAPSHOT - - - junit - junit - 4.4 - test - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> + 4.0.0 + com.googlecode.struts2juel + struts2-juel-plugin + jar + Struts 2 Juel Plugin + 1.0.0-SNAPSHOT + + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + + + + scm:svn:https://struts2scopeplugin.googlecode.com/svn/trunk/ + + + scm:svn:https://struts2scopeplugin.googlecode.com/svn/trunk/ + + http://struts2scopeplugin.googlecode.com/svn/trunk/ + + + + org.mortbay.jetty + jsp-api-2.1 + 6.1H.5-beta + provided + + + org.apache.struts + struts2-core + 2.1.1-SNAPSHOT + + + javax.servlet + servlet-api + + + + + junit + junit + 4.4 + test + de.odysseus.juel juel 2.1.0 + test commons-beanutils commons-beanutils 20030211.134440 - + commons-collections commons-collections 20040616 - + commons-logging commons-logging 1.1 - - + + + javax.servlet + servlet-api + + + +