branch pollen-udpate-1.6 updated (23c7976 -> a9fe826)
This is an automated email from the git hooks/post-receive script. New change to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git from 23c7976 fixes #1301: [Comment] Add anti spam filter vote vote and comments new 0cd46aa refs #1308: Update parent pom new d69b8fb refs #1308: Update nuiton-i18n new af27a15 refs #1308: Update nuiton-i18n & nuiton-utils new 900d716 refs #1308: Update log4j new d4969ac refs #1308: Update commons-collections4 new 9372b32 refs #1308: Update commons-lang new e5b5c45 refs #1308: Update commons-io new 434338b refs #1308: Update guava new 7eaf183 refs #1308: Update nuiton-config new 60759d0 refs #1308: Update nuiton-validator new e6576be refs #1308: Update log4j new cd74edf refs #1308: Update javamail new 03c1b05 refs #1308: Replace deprecated apis new e6b82e3 refs #1308: Replace deprecated apis new e9dcf3f refs #1308: Update struts to 2.5.5 new ae812b3 refs #1308: Update c3p0 new c5b5a1b refs #1308: Update shiro new 530a8ae refs #1308: Update selenium new 85dc30b refs #1308: Update postgres new a9fe826 refs #1308: Update mockito The 20 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit a9fe8268343886f010996be17eae80cf1a3fac0e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 23:13:06 2016 +0100 refs #1308: Update mockito commit 85dc30b9dff68a53315cb4dc64fc4b41d65caf11 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:49:10 2016 +0100 refs #1308: Update postgres commit 530a8aed5687566d874737a92c3af2c529fce264 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:48:12 2016 +0100 refs #1308: Update selenium commit c5b5a1b801989d763aaf68628de1d0e471d31c8c Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:36:45 2016 +0100 refs #1308: Update shiro commit ae812b3ddb4e1e85833f427fe7b8a712fabfcb8e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:01:13 2016 +0100 refs #1308: Update c3p0 commit e9dcf3fe508482fc9d0afc5a2593d48aa4e4e22b Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:00:03 2016 +0100 refs #1308: Update struts to 2.5.5 commit e6b82e3145d94f89b6f97f7cdbceb4cd6b23c874 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 22:39:58 2016 +0100 refs #1308: Replace deprecated apis commit 03c1b05de945705883fa6e41f14076f67157f676 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 22:39:39 2016 +0100 refs #1308: Replace deprecated apis commit cd74edf033332edf53f759170303f77f02c16c29 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:54:04 2016 +0100 refs #1308: Update javamail commit e6576beef0f0be4bd3613841c77e8c169679ca3e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:53:49 2016 +0100 refs #1308: Update log4j commit 60759d0bf3168b0c6e5bbcf214a378859163de68 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:52:49 2016 +0100 refs #1308: Update nuiton-validator commit 7eaf183f1a7a9de3fa8aef39bcbf500d1ef6d8d6 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:52:34 2016 +0100 refs #1308: Update nuiton-config commit 434338bf5fe75e35e347aeaa77547f15c368c831 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:58 2016 +0100 refs #1308: Update guava commit e5b5c45fa3e642dba37449ef3b0724f5fec36cb2 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:42 2016 +0100 refs #1308: Update commons-io commit 9372b32e1c524a4ec5d42cad63c351ba1314b6f4 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:29 2016 +0100 refs #1308: Update commons-lang commit d4969ac95015a6eb5546e8194570812b7b6e9edb Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:16 2016 +0100 refs #1308: Update commons-collections4 commit 900d71677736ed878b6ab9c45f3d2181336c25ea Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:50:34 2016 +0100 refs #1308: Update log4j commit af27a15482109b612f6b1c592f2a92717054dac1 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:50:08 2016 +0100 refs #1308: Update nuiton-i18n & nuiton-utils commit d69b8fbf4580b9b967c6613ade3db06dc668e44c Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:47:21 2016 +0100 refs #1308: Update nuiton-i18n commit 0cd46aa37e8478e14ebf8438d985b81fa6f68aac Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:43:34 2016 +0100 refs #1308: Update parent pom Summary of changes: README.txt => README.md | 0 pollen-persistence/{README.txt => README.md} | 0 .../org/chorem/pollen/PollenConfiguration.java | 30 ++++------ .../business/persistence/CommentDAOImpl.java | 6 +- .../pollen/business/persistence/PollTest.java | 4 +- pollen-services/{README.txt => README.md} | 0 pollen-services/pom.xml | 5 +- .../chorem/pollen/services/impl/PollService.java | 9 ++- .../pollen/services/impl/SecurityService.java | 6 +- .../pollen/services/impl/FavoriteServiceTest.java | 7 ++- .../README.txt => pollen-ui-struts2/README.md | 0 pollen-ui-struts2/pom.xml | 7 +-- .../src/it/createPoll/{README.txt => README.md} | 0 .../{README.txt => README.md} | 0 .../pollVoteVisibility/{README.txt => README.md} | 0 .../src/it/pollen-ui-it/{README.txt => README.md} | 0 pollen-ui-struts2/src/it/pollen-ui-it/pom.xml | 2 +- .../src/it/security/{README.txt => README.md} | 0 .../src/main/assembly/dist/pollen.properties | 2 +- .../pollen/ui/PollenStaticContentLoader.java | 3 +- .../chorem/pollen/ui/actions/poll/GetPollFeed.java | 3 +- .../pollen/ui/actions/poll/admin/ExportPoll.java | 3 +- .../ui/actions/poll/form/AbstractPollForm.java | 3 +- .../interceptors/PollenFileUploadInterceptor.java | 2 +- .../results/PollenServletActionRedirectResult.java | 2 +- .../org/chorem/pollen/ui/results/package-info.java | 4 +- pollen-ui-struts2/src/main/resources/struts.xml | 11 ++-- .../main/webapp/WEB-INF/jsp/admin/pollsList.jsp | 2 +- .../main/webapp/WEB-INF/jsp/admin/usersList.jsp | 2 +- .../webapp/WEB-INF/jsp/poll/createPoll_choices.jsp | 22 +++---- .../webapp/WEB-INF/jsp/poll/displayDateChoice.jsp | 8 +-- .../webapp/WEB-INF/jsp/poll/displayImageChoice.jsp | 12 ++-- .../WEB-INF/jsp/poll/displayPersonToList.jsp | 10 ++-- .../WEB-INF/jsp/poll/displayPollComments.jsp | 2 +- .../webapp/WEB-INF/jsp/poll/displayTextChoice.jsp | 8 +-- .../webapp/WEB-INF/jsp/poll/displayVotingList.jsp | 20 +++---- .../WEB-INF/jsp/poll/displayVotingListPersons.jsp | 12 ++-- .../WEB-INF/jsp/poll/personListToVotingList.jsp | 6 +- .../src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp | 10 ++-- .../src/main/webapp/WEB-INF/jsp/poll/result.jsp | 12 ++-- .../src/main/webapp/WEB-INF/jsp/poll/vote.jsp | 20 +++---- .../src/main/webapp/WEB-INF/jsp/pollListHelper.jsp | 30 +++++----- .../main/webapp/WEB-INF/jsp/user/createdList.jsp | 2 +- .../main/webapp/WEB-INF/jsp/user/favoriteList.jsp | 6 +- .../main/webapp/WEB-INF/jsp/user/favoriteLists.jsp | 4 +- .../main/webapp/WEB-INF/jsp/user/invitedList.jsp | 2 +- .../webapp/WEB-INF/jsp/user/participatedList.jsp | 2 +- pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml | 12 ++-- .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 .../README.md | 0 pom.xml | 69 ++++++++-------------- 58 files changed, 176 insertions(+), 206 deletions(-) rename README.txt => README.md (100%) rename pollen-persistence/{README.txt => README.md} (100%) rename pollen-services/{README.txt => README.md} (100%) rename pollen-votecounting-percentage/README.txt => pollen-ui-struts2/README.md (100%) rename pollen-ui-struts2/src/it/createPoll/{README.txt => README.md} (100%) rename pollen-ui-struts2/src/it/pollCommentVisibility/{README.txt => README.md} (100%) rename pollen-ui-struts2/src/it/pollVoteVisibility/{README.txt => README.md} (100%) rename pollen-ui-struts2/src/it/pollen-ui-it/{README.txt => README.md} (100%) rename pollen-ui-struts2/src/it/security/{README.txt => README.md} (100%) rename pollen-votecounting-number/README.txt => pollen-votecounting-aggregator/README.md (100%) rename pollen-votecounting-normal/README.txt => pollen-votecounting-api/README.md (100%) rename pollen-votecounting-instant-runoff/README.txt => pollen-votecounting-borda/README.md (100%) rename pollen-votecounting-coombs/README.txt => pollen-votecounting-condorcet/README.md (100%) rename pollen-votecounting-condorcet/README.txt => pollen-votecounting-coombs/README.md (100%) rename pollen-votecounting-borda/README.txt => pollen-votecounting-instant-runoff/README.md (100%) rename pollen-votecounting-api/README.txt => pollen-votecounting-normal/README.md (100%) rename pollen-votecounting-aggregator/README.txt => pollen-votecounting-number/README.md (100%) rename pollen-ui-struts2/README.txt => pollen-votecounting-percentage/README.md (100%) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit af27a15482109b612f6b1c592f2a92717054dac1 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:50:08 2016 +0100 refs #1308: Update nuiton-i18n & nuiton-utils --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fbb6fb9..ef53af7 100644 --- a/pom.xml +++ b/pom.xml @@ -157,9 +157,9 @@ <!-- customized versions --> <topiaVersion>2.11</topiaVersion> <eugenePluginVersion>3.0-alpha-1</eugenePluginVersion> - <nuitonI18nVersion>3.3</nuitonI18nVersion> + <nuitonI18nVersion>3.6</nuitonI18nVersion> <nuitonWebVersion>1.18</nuitonWebVersion> - <nuitonUtilsVersion>3.0-rc-8</nuitonUtilsVersion> + <nuitonUtilsVersion>3.0-rc-16</nuitonUtilsVersion> <h2Version>1.3.176</h2Version> <postgresqlVersion>9.4-1205-jdbc41</postgresqlVersion> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 900d71677736ed878b6ab9c45f3d2181336c25ea Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:50:34 2016 +0100 refs #1308: Update log4j --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ef53af7..cbf02e7 100644 --- a/pom.xml +++ b/pom.xml @@ -166,7 +166,7 @@ <struts2Version>2.3.24.1</struts2Version> <jqueryPluginVersion>3.7.1</jqueryPluginVersion> <shiroVersion>1.2.4</shiroVersion> - <log4j>2.4.1</log4j> + <log4j>2.7</log4j> <jettyVersion>9.3.6.v20151106</jettyVersion> <jettyPluginVersion>9.3.6.v20151106</jettyPluginVersion> <hibernateVersion>4.3.11.Final</hibernateVersion> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit d4969ac95015a6eb5546e8194570812b7b6e9edb Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:16 2016 +0100 refs #1308: Update commons-collections4 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index cbf02e7..7b9fb5f 100644 --- a/pom.xml +++ b/pom.xml @@ -227,7 +227,7 @@ <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> - <version>4.0</version> + <version>4.1</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 9372b32e1c524a4ec5d42cad63c351ba1314b6f4 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:29 2016 +0100 refs #1308: Update commons-lang --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7b9fb5f..0138987 100644 --- a/pom.xml +++ b/pom.xml @@ -232,7 +232,7 @@ <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> - <version>3.4</version> + <version>3.5</version> </dependency> <dependency> <groupId>commons-logging</groupId> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit e5b5c45fa3e642dba37449ef3b0724f5fec36cb2 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:42 2016 +0100 refs #1308: Update commons-io --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0138987..8482a70 100644 --- a/pom.xml +++ b/pom.xml @@ -242,7 +242,7 @@ <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> - <version>2.4</version> + <version>2.5</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 434338bf5fe75e35e347aeaa77547f15c368c831 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:51:58 2016 +0100 refs #1308: Update guava --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8482a70..7542109 100644 --- a/pom.xml +++ b/pom.xml @@ -254,7 +254,7 @@ <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> - <version>18.0</version> + <version>20.0</version> </dependency> <!-- ToPIA (and db) --> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 7eaf183f1a7a9de3fa8aef39bcbf500d1ef6d8d6 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:52:34 2016 +0100 refs #1308: Update nuiton-config --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7542109..a20e295 100644 --- a/pom.xml +++ b/pom.xml @@ -312,7 +312,7 @@ <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-config</artifactId> - <version>3.0-rc-2</version> + <version>3.1</version> </dependency> <dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 60759d0bf3168b0c6e5bbcf214a378859163de68 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:52:49 2016 +0100 refs #1308: Update nuiton-validator --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a20e295..64753a6 100644 --- a/pom.xml +++ b/pom.xml @@ -318,7 +318,7 @@ <dependency> <groupId>org.nuiton</groupId> <artifactId>nuiton-validator</artifactId> - <version>3.0</version> + <version>3.0.1</version> </dependency> <dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit e6576beef0f0be4bd3613841c77e8c169679ca3e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:53:49 2016 +0100 refs #1308: Update log4j --- pom.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 64753a6..e03136a 100644 --- a/pom.xml +++ b/pom.xml @@ -166,7 +166,7 @@ <struts2Version>2.3.24.1</struts2Version> <jqueryPluginVersion>3.7.1</jqueryPluginVersion> <shiroVersion>1.2.4</shiroVersion> - <log4j>2.7</log4j> + <log4jVersion>2.7</log4jVersion> <jettyVersion>9.3.6.v20151106</jettyVersion> <jettyPluginVersion>9.3.6.v20151106</jettyPluginVersion> <hibernateVersion>4.3.11.Final</hibernateVersion> @@ -436,21 +436,21 @@ <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-jcl</artifactId> - <version>2.4.1</version> + <version>${log4jVersion}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> - <version>2.4.1</version> + <version>${log4jVersion}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> - <version>2.4.1</version> + <version>${log4jVersion}</version> <scope>runtime</scope> </dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit cd74edf033332edf53f759170303f77f02c16c29 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 20:54:04 2016 +0100 refs #1308: Update javamail --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e03136a..a11df27 100644 --- a/pom.xml +++ b/pom.xml @@ -475,7 +475,7 @@ <dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> - <version>1.5.4</version> + <version>1.5.6</version> </dependency> <dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 03c1b05de945705883fa6e41f14076f67157f676 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 22:39:39 2016 +0100 refs #1308: Replace deprecated apis --- .../org/chorem/pollen/PollenConfiguration.java | 30 +++++++++------------- .../business/persistence/CommentDAOImpl.java | 6 ++--- .../chorem/pollen/services/impl/PollService.java | 9 +++---- .../pollen/services/impl/SecurityService.java | 6 ++--- .../pollen/services/impl/FavoriteServiceTest.java | 7 ++--- .../pollen/ui/PollenStaticContentLoader.java | 3 ++- .../chorem/pollen/ui/actions/poll/GetPollFeed.java | 3 ++- .../pollen/ui/actions/poll/admin/ExportPoll.java | 3 ++- 8 files changed, 32 insertions(+), 35 deletions(-) diff --git a/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java b/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java index c7dfc25..8d30751 100644 --- a/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java +++ b/pollen-persistence/src/main/java/org/chorem/pollen/PollenConfiguration.java @@ -22,15 +22,8 @@ */ package org.chorem.pollen; -import java.io.File; -import java.io.IOException; -import java.net.URL; -import java.util.Collections; -import java.util.Comparator; -import java.util.Enumeration; -import java.util.List; -import java.util.Properties; - +import com.google.common.base.Preconditions; +import com.google.common.collect.Lists; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import org.apache.commons.logging.Log; @@ -42,10 +35,15 @@ import org.chorem.pollen.business.persistence.PollVoteVisibility; import org.nuiton.config.ApplicationConfig; import org.nuiton.config.ArgumentsParserException; import org.nuiton.util.FileUtil; -import org.nuiton.util.version.Version; +import org.nuiton.version.Version; -import com.google.common.base.Preconditions; -import com.google.common.collect.Lists; +import java.io.File; +import java.net.URL; +import java.util.Collections; +import java.util.Comparator; +import java.util.Enumeration; +import java.util.List; +import java.util.Properties; /** * Pollen configuration. @@ -371,12 +369,8 @@ public class PollenConfiguration { if (log.isInfoEnabled()) { log.info(key + " = " + directory); } - try { - FileUtil.createDirectoryIfNecessary(directory); - } catch (IOException e) { - throw new PollenTechnicalException( - "Could not create directory " + directory, e); - } + + FileUtil.createDirectoryIfNecessary(directory); } public static final Comparator<PollenConfigurationOption> POLLEN_CONFIGURATION_OPTION_COMPARATOR = new Comparator<PollenConfigurationOption>() { diff --git a/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java b/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java index 36be5ed..7050471 100644 --- a/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java +++ b/pollen-persistence/src/main/java/org/chorem/pollen/business/persistence/CommentDAOImpl.java @@ -22,7 +22,7 @@ */ package org.chorem.pollen.business.persistence; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.base.Preconditions; import org.chorem.pollen.entities.PollenDAOHelper; import org.nuiton.topia.TopiaException; @@ -39,8 +39,8 @@ public class CommentDAOImpl<E extends Comment> extends CommentDAOAbstract<E> { @Override public int compare(Comment o1, Comment o2) { // AThimel 26/11/2014: For backward compatibility, in case some comment does not have a postDate (there is no notnull constraint) - Date d1 = Objects.firstNonNull(o1.getPostDate(), o1.getTopiaCreateDate()); - Date d2 = Objects.firstNonNull(o2.getPostDate(), o2.getTopiaCreateDate()); + Date d1 = MoreObjects.firstNonNull(o1.getPostDate(), o1.getTopiaCreateDate()); + Date d2 = MoreObjects.firstNonNull(o2.getPostDate(), o2.getTopiaCreateDate()); return d1.compareTo(d2); } }; diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java b/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java index 42e9ca7..d2760b6 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/impl/PollService.java @@ -23,12 +23,10 @@ package org.chorem.pollen.services.impl; import com.google.common.base.Function; -import com.google.common.base.Objects; import com.google.common.base.Preconditions; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; import org.apache.commons.io.FileUtils; -import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.Pair; import org.apache.commons.logging.Log; @@ -73,6 +71,7 @@ import java.util.Date; import java.util.List; import java.util.Locale; import java.util.Map; +import java.util.Objects; import static org.nuiton.i18n.I18n.l; @@ -735,7 +734,7 @@ public class PollService extends PollenServiceSupport { PollImageChoice imageChoice = (PollImageChoice) choice; if (newChoice || - !ObjectUtils.equals(choice.getName(), + !Objects.equals(choice.getName(), choiceLoaded.getName())) { // copy image where it belong and generate the thumb // only if choice is to create or name has change (so image too...) @@ -935,7 +934,7 @@ public class PollService extends PollenServiceSupport { String accountId = pollAccount.getAccountId(); String accountEmail = pollAccount.getEmail(); - if (ObjectUtils.equals(creatorEmail, pollAccount.getEmail())) { + if (Objects.equals(creatorEmail, pollAccount.getEmail())) { // use the creator account pollAccountLoaded = pollAccountDAO.findByAccountId( @@ -978,7 +977,7 @@ public class PollService extends PollenServiceSupport { personToListLoaded.setWeight(personToList.getWeight()); pollAccountLoaded.setVotingId(pollAccount.getVotingId()); - boolean emailChanged = !Objects.equal(pollAccountLoaded.getEmail(), + boolean emailChanged = !Objects.equals(pollAccountLoaded.getEmail(), pollAccount.getEmail()); pollAccountLoaded.setEmail(pollAccount.getEmail()); diff --git a/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java b/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java index 78e9b02..882365e 100644 --- a/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java +++ b/pollen-services/src/main/java/org/chorem/pollen/services/impl/SecurityService.java @@ -24,7 +24,6 @@ package org.chorem.pollen.services.impl; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; -import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.chorem.pollen.PollenTechnicalException; import org.chorem.pollen.PollenUserSecurityContext; @@ -41,6 +40,7 @@ import org.nuiton.topia.TopiaException; import java.util.Date; import java.util.EnumSet; import java.util.List; +import java.util.Objects; import java.util.Set; import static org.chorem.pollen.PollenUserSecurityContext.PollenUserSecurityRole; @@ -462,7 +462,7 @@ public class SecurityService extends PollenServiceSupport { boolean result; - if (ObjectUtils.equals(poll.getCreator().getAccountId(), accountId)) { + if (Objects.equals(poll.getCreator().getAccountId(), accountId)) { // creator found by account id result = true; @@ -477,7 +477,7 @@ public class SecurityService extends PollenServiceSupport { //FIXME-tchemit-2012-08-28 : voir http://chorem.org/issues/796 // try to link bo user account email - result = ObjectUtils.equals(poll.getCreator().getEmail(), + result = Objects.equals(poll.getCreator().getEmail(), userAccount.getEmail()); } } else { diff --git a/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java b/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java index 1e831cf..9203d54 100644 --- a/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java +++ b/pollen-services/src/test/java/org/chorem/pollen/services/impl/FavoriteServiceTest.java @@ -33,6 +33,7 @@ import org.junit.Ignore; import org.junit.Test; import java.io.File; +import java.nio.charset.StandardCharsets; import java.util.List; /** @@ -128,7 +129,7 @@ public class FavoriteServiceTest extends AbstractPollenServiceTest { String importContent = "badEmail@ voterId"; - FileUtils.write(importFile, importContent); + FileUtils.write(importFile, importContent, StandardCharsets.UTF_8); service.importFromCsvfile(importFile.getName(), importFile); } @@ -141,7 +142,7 @@ public class FavoriteServiceTest extends AbstractPollenServiceTest { File importFile = getCsvImportFile(); String importContent = ""; - FileUtils.write(importFile, importContent); + FileUtils.write(importFile, importContent, StandardCharsets.UTF_8); List<PollAccount> importedAccount = service.importFromCsvfile(importFile.getName(), importFile); @@ -157,7 +158,7 @@ public class FavoriteServiceTest extends AbstractPollenServiceTest { File importFile = getCsvImportFile(); String importContent = "myemail@mydomain.uk voterId \n\t\t myemail2@mydomain.uk\r\r\n#Comment\n\n "; - FileUtils.write(importFile, importContent); + FileUtils.write(importFile, importContent, StandardCharsets.UTF_8); List<PollAccount> importedAccount = service.importFromCsvfile(importFile.getName(), importFile); diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenStaticContentLoader.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenStaticContentLoader.java index 74abc8c..286abc0 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenStaticContentLoader.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/PollenStaticContentLoader.java @@ -34,6 +34,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.nio.charset.StandardCharsets; import java.util.Calendar; /** @@ -114,7 +115,7 @@ public class PollenStaticContentLoader extends DefaultStaticContentLoader { String path) throws IOException { if (path.contains(".js")) { - String content = IOUtils.toString(input); + String content = IOUtils.toString(input, StandardCharsets.UTF_8); if (content.indexOf("/") == 1) { // fix nasty first strange caracter for ckeditor (only on firefox :() content = content.substring(1); diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java index 251eec7..fea09ef 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/GetPollFeed.java @@ -28,6 +28,7 @@ import org.chorem.pollen.business.persistence.Poll; import org.chorem.pollen.ui.actions.PollenActionSupport; import java.io.InputStream; +import java.nio.charset.StandardCharsets; /** * Obtain the feed of a given poll. @@ -68,7 +69,7 @@ public class GetPollFeed extends PollenActionSupport { contentLength = content.length(); - inputStream = IOUtils.toInputStream(content); + inputStream = IOUtils.toInputStream(content, StandardCharsets.UTF_8); return SUCCESS; } diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/ExportPoll.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/ExportPoll.java index a8ba0aa..c1d35ed 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/ExportPoll.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/admin/ExportPoll.java @@ -27,6 +27,7 @@ import org.chorem.pollen.ui.actions.PollenActionSupport; import org.chorem.pollen.ui.actions.PollenUserSecurityAware; import java.io.InputStream; +import java.nio.charset.StandardCharsets; /** * Exports an existing poll. @@ -67,7 +68,7 @@ public class ExportPoll extends PollenActionSupport implements PollenUserSecurit contentLength = exportContent.length() * 2; - inputStream = IOUtils.toInputStream(exportContent); + inputStream = IOUtils.toInputStream(exportContent, StandardCharsets.UTF_8); return SUCCESS; } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit e6b82e3145d94f89b6f97f7cdbceb4cd6b23c874 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Mon Dec 12 22:39:58 2016 +0100 refs #1308: Replace deprecated apis --- .../java/org/chorem/pollen/ui/actions/poll/form/AbstractPollForm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/form/AbstractPollForm.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/form/AbstractPollForm.java index 453ec71..05d0048 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/form/AbstractPollForm.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/poll/form/AbstractPollForm.java @@ -79,6 +79,7 @@ import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -1288,7 +1289,7 @@ public abstract class AbstractPollForm extends PollenActionSupportForEdition imp Choice oldChoice = poll.getChoiceByTopiaId(choiceId); - if (ObjectUtils.equals( + if (Objects.equals( imageChoice.getName(), oldChoice.getName())) { -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit e9dcf3fe508482fc9d0afc5a2593d48aa4e4e22b Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:00:03 2016 +0100 refs #1308: Update struts to 2.5.5 --- pollen-services/pom.xml | 5 ++-- pollen-ui-struts2/pom.xml | 5 ---- .../interceptors/PollenFileUploadInterceptor.java | 2 +- .../results/PollenServletActionRedirectResult.java | 2 +- .../org/chorem/pollen/ui/results/package-info.java | 4 +-- pollen-ui-struts2/src/main/resources/struts.xml | 11 ++++---- .../main/webapp/WEB-INF/jsp/admin/pollsList.jsp | 2 +- .../main/webapp/WEB-INF/jsp/admin/usersList.jsp | 2 +- .../webapp/WEB-INF/jsp/poll/createPoll_choices.jsp | 22 ++++++++-------- .../webapp/WEB-INF/jsp/poll/displayDateChoice.jsp | 8 +++--- .../webapp/WEB-INF/jsp/poll/displayImageChoice.jsp | 12 ++++----- .../WEB-INF/jsp/poll/displayPersonToList.jsp | 10 ++++---- .../WEB-INF/jsp/poll/displayPollComments.jsp | 2 +- .../webapp/WEB-INF/jsp/poll/displayTextChoice.jsp | 8 +++--- .../webapp/WEB-INF/jsp/poll/displayVotingList.jsp | 20 +++++++-------- .../WEB-INF/jsp/poll/displayVotingListPersons.jsp | 12 ++++----- .../WEB-INF/jsp/poll/personListToVotingList.jsp | 6 ++--- .../src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp | 10 ++++---- .../src/main/webapp/WEB-INF/jsp/poll/result.jsp | 12 ++++----- .../src/main/webapp/WEB-INF/jsp/poll/vote.jsp | 20 +++++++-------- .../src/main/webapp/WEB-INF/jsp/pollListHelper.jsp | 30 +++++++++++----------- .../main/webapp/WEB-INF/jsp/user/createdList.jsp | 2 +- .../main/webapp/WEB-INF/jsp/user/favoriteList.jsp | 6 ++--- .../main/webapp/WEB-INF/jsp/user/favoriteLists.jsp | 4 +-- .../main/webapp/WEB-INF/jsp/user/invitedList.jsp | 2 +- .../webapp/WEB-INF/jsp/user/participatedList.jsp | 2 +- pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml | 12 +++------ pom.xml | 14 +--------- 28 files changed, 112 insertions(+), 135 deletions(-) diff --git a/pollen-services/pom.xml b/pollen-services/pom.xml index d95234f..e27a93f 100644 --- a/pollen-services/pom.xml +++ b/pollen-services/pom.xml @@ -29,9 +29,10 @@ </dependency> <dependency> - <groupId>org.apache.struts.xwork</groupId> - <artifactId>xwork-core</artifactId> + <groupId>org.apache.struts</groupId> + <artifactId>struts2-core</artifactId> </dependency> + <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> diff --git a/pollen-ui-struts2/pom.xml b/pollen-ui-struts2/pom.xml index 3a0c8e2..85893b2 100644 --- a/pollen-ui-struts2/pom.xml +++ b/pollen-ui-struts2/pom.xml @@ -111,11 +111,6 @@ </dependency> <dependency> - <groupId>org.apache.struts.xwork</groupId> - <artifactId>xwork-core</artifactId> - </dependency> - - <dependency> <groupId>org.jfree</groupId> <artifactId>jfreechart</artifactId> </dependency> diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java index 6e5270e..30b2cfa 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/interceptors/PollenFileUploadInterceptor.java @@ -25,7 +25,7 @@ package org.chorem.pollen.ui.interceptors; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.ActionProxy; -import com.opensymphony.xwork2.ValidationAware; +import com.opensymphony.xwork2.interceptor.ValidationAware; import com.opensymphony.xwork2.util.LocalizedTextUtil; import org.apache.struts2.ServletActionContext; import org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper; diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java index 294ca50..dafe6ec 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/PollenServletActionRedirectResult.java @@ -51,9 +51,9 @@ import com.opensymphony.xwork2.util.logging.Logger; import com.opensymphony.xwork2.util.logging.LoggerFactory; import org.apache.struts2.ServletActionContext; import org.apache.struts2.dispatcher.Dispatcher; -import org.apache.struts2.dispatcher.ServletActionRedirectResult; import org.apache.struts2.dispatcher.mapper.ActionMapper; import org.apache.struts2.dispatcher.mapper.ActionMapping; +import org.apache.struts2.result.ServletActionRedirectResult; import org.apache.struts2.views.util.UrlHelper; import javax.servlet.http.HttpServletRequest; diff --git a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/package-info.java b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/package-info.java index d03fea8..4ee28c4 100644 --- a/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/package-info.java +++ b/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/results/package-info.java @@ -2,7 +2,7 @@ * Base Package for the results used in ui module. * * @author tchemit <chemit@codelutin.com> - * @see StrutsResultSupport + * @see org.apache.struts2.result.StrutsResultSupport */ package org.chorem.pollen.ui.results; /* @@ -27,5 +27,3 @@ package org.chorem.pollen.ui.results; * along with this program. If not, see <http://www.gnu.org/licenses/>. * #L% */ - -import org.apache.struts2.dispatcher.StrutsResultSupport; \ No newline at end of file diff --git a/pollen-ui-struts2/src/main/resources/struts.xml b/pollen-ui-struts2/src/main/resources/struts.xml index dce4f72..d1a7617 100644 --- a/pollen-ui-struts2/src/main/resources/struts.xml +++ b/pollen-ui-struts2/src/main/resources/struts.xml @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit + Copyright (C) 2009 - 2016 CodeLutin, Tony Chemit %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -22,10 +22,9 @@ #L% --> - <!DOCTYPE struts PUBLIC - "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" - "http://struts.apache.org/dtds/struts-2.3.dtd"> + "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" + "http://struts.apache.org/dtds/struts-2.5.dtd"> <struts> @@ -62,7 +61,7 @@ <result-types> <result-type name="redirectToHome" - class="org.apache.struts2.dispatcher.ServletActionRedirectResult"> + class="org.apache.struts2.result.ServletActionRedirectResult"> <param name="namespace">/</param> <param name="actionName">home</param> </result-type> @@ -71,7 +70,7 @@ class="org.chorem.pollen.ui.results.PollenServletActionRedirectResult"/> <result-type name="redirect2" - class="org.apache.struts2.dispatcher.ServletRedirectResult"> + class="org.apache.struts2.result.ServletRedirectResult"> <param name="location">${redirectUrl}</param> <param name="prependServletContext">false</param> </result-type> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp index b854020..862c2bc 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/pollsList.jsp @@ -34,7 +34,7 @@ <s:text name="pollen.title.pollsList"/> </h1> -<s:url id="loadUrl" action="getPolls" namespace="/json" escapeAmp="false"/> +<s:url var="loadUrl" action="getPolls" namespace="/json" escapeAmp="false"/> <sjg:grid id="polls" dataType="json" href="%{loadUrl}" gridModel="data" sortable="true" pager="true" pagerButtons="true" pagerInput="true" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp index 4622f20..e858ccc 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/admin/usersList.jsp @@ -36,7 +36,7 @@ <s:text name="pollen.title.usersList"/> </h1> -<s:url id="loadUsers" action="getUsers" namespace="/json" escapeAmp="false"/> +<s:url var="loadUsers" action="getUsers" namespace="/json" escapeAmp="false"/> <s:set var="user" value="%{#session.pollenSession.userAccount}"/> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp index 50658ef..ede98b3 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/createPoll_choices.jsp @@ -30,15 +30,15 @@ <hr/> <s:fielderror fieldName="poll.choices" id="poll_choices_error"/> -<s:set id='deleteTitle'><s:text +<s:set var='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> -<s:set id='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> -<s:set id='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> +<s:set var='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> +<s:set var='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> <div id="choicesTEXT" class="choices"> <s:iterator value="textChoices" status="status" var="choice"> - <s:set name="choiceNumber"><s:property value="%{#status.index}"/></s:set> - <s:set name="prefix">textChoice_<s:property + <s:set var="choiceNumber"><s:property value="%{#status.index}"/></s:set> + <s:set var="prefix">textChoice_<s:property value="%{#choiceNumber}"/></s:set> <div id='choicesTEXT_<s:property value="choiceNumber"/>' class="ui-state-default choicesDiv"> <%--<div id='choicesTEXT_<s:property value="choiceNumber"/>'>--%> @@ -74,8 +74,8 @@ </div> <div id="choicesDATE" class="choices"> <s:iterator value="dateChoices" status="status" var="choice"> - <s:set name="choiceNumber"><s:property value="%{#status.index}"/></s:set> - <s:set name="prefix">dateChoice_<s:property + <s:set var="choiceNumber"><s:property value="%{#status.index}"/></s:set> + <s:set var="prefix">dateChoice_<s:property value="%{#choiceNumber}"/></s:set> <div id='choicesDATE_<s:property value="choiceNumber"/>' class="ui-state-default choicesDiv"> @@ -115,8 +115,8 @@ </div> <div id="choicesIMAGE" class="choices"> <s:iterator value="imageChoices" status="status" var="choice"> - <s:set name="choiceNumber"><s:property value="%{#status.index}"/></s:set> - <s:set name="prefix">imageChoice_<s:property + <s:set var="choiceNumber"><s:property value="%{#status.index}"/></s:set> + <s:set var="prefix">imageChoice_<s:property value="%{#choiceNumber}"/></s:set> <div id='choicesIMAGE_<s:property value="choiceNumber"/>' class="ui-state-default"> @@ -139,7 +139,7 @@ <s:hidden id="%{#prefix}.location" name="%{#prefix}.location" value="%{#choice.location}" label='' theme="simple"/> - <s:url id="imageUrl" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrl" namespace="/io" action="getPollChoiceImage" escapeAmp="true"> <s:param name="choiceTokenId" value="%{getImageChoiceName(#choice)}"/> @@ -155,7 +155,7 @@ </s:if> <s:else> <%--New image--%> - <s:url id="imageUrl" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrl" namespace="/io" action="getPollChoiceImage" escapeAmp="false" value="/img/7ter.jpg"/> <img name="<s:property value="#prefix"/>.thumb" alt="<s:text name='pollen.image.not.loaded'/>" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp index db4b6ed..ac988a5 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayDateChoice.jsp @@ -24,10 +24,10 @@ <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="sj" uri="/struts-jquery-tags" %> -<s:set name="prefix">dateChoice_<s:property value="choiceNumber"/></s:set> -<s:set id='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> -<s:set id='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> -<s:set id='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> +<s:set var="prefix">dateChoice_<s:property value="choiceNumber"/></s:set> +<s:set var='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> +<s:set var='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> +<s:set var='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> <div id='choicesDATE_<s:property value="choiceNumber"/>' class="ui-state-default choicesDiv"> <s:hidden key='%{#prefix}.topiaId' value='%{choice.topiaId}' label=''/> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp index 8bb9d91..e03e09b 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayImageChoice.jsp @@ -23,11 +23,11 @@ <%@ page language="java" contentType="text/html" pageEncoding="utf-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> -<s:set name="prefix">imageChoice_<s:property value="choiceNumber"/></s:set> -<s:set name="prefix2">imageChoice[<s:property value="choiceNumber"/>]</s:set> -<s:set id='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> -<s:set id='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> -<s:set id='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> +<s:set var="prefix">imageChoice_<s:property value="choiceNumber"/></s:set> +<s:set var="prefix2">imageChoice[<s:property value="choiceNumber"/>]</s:set> +<s:set var='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> +<s:set var='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> +<s:set var='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> <div id='choicesIMAGE_<s:property value="choiceNumber"/>' class="ui-state-default"> <s:hidden key='%{#prefix}.topiaId' value='%{choice.topiaId}' label=''/> @@ -39,7 +39,7 @@ theme="simple" value=''/> </div> <div class="fright"> - <s:url id="imageUrl" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrl" namespace="/io" action="getPollChoiceImage" escapeAmp="false" value="/img/7ter.jpg"/> <img name="<s:property value="#prefix"/>.thumb" alt="<s:text name='pollen.image.not.loaded'/>" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp index 27f7fa9..02cb888 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPersonToList.jsp @@ -24,17 +24,17 @@ <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="sp" uri="/nuiton-tags" %> -<s:set name="personPrefix">votingList<s:property +<s:set var="personPrefix">votingList<s:property value="votingListType"/>_<s:property value="votingListNumber"/>PersonToList_<s:property value="personToListNumber"/> </s:set> -<s:set name="personToList" value="%{personToList}"/> +<s:set var="personToList" value="%{personToList}"/> -<s:set id='deletePersonTitle'> +<s:set var='deletePersonTitle'> <s:text name="pollen.action.pollPersonToListDelete"/> </s:set> -<s:div id='%{#personPrefix}' cssClass="personToList"> +<div id='<s:property value="%{#personPrefix}" />' class="personToList"> <s:hidden key='%{#personPrefix}.topiaId' value='%{#personToList.topiaId}' label=''/> <s:hidden key='%{#personPrefix}.accountId' @@ -75,4 +75,4 @@ </s:if> <div class="cleanBoth"></div> -</s:div> +</div> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp index 08db14d..ddab8e9 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayPollComments.jsp @@ -50,7 +50,7 @@ <div id="Pagination" class="pagination"></div> <div id="commentsDiv"> <s:iterator value="comments" var="comment" status="status"> - <s:set name="comment" value="%{#comment}"/> + <s:set var="comment" value="%{#comment}"/> <%@include file="displayPollComment.jsp" %> </s:iterator> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp index a193a79..7cbfa1d 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayTextChoice.jsp @@ -23,10 +23,10 @@ <%@ page language="java" contentType="text/html" pageEncoding="utf-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> -<s:set name="prefix">textChoice_<s:property value="choiceNumber"/></s:set> -<s:set id='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> -<s:set id='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> -<s:set id='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> +<s:set var="prefix">textChoice_<s:property value="choiceNumber"/></s:set> +<s:set var='deleteTitle'><s:text name="pollen.action.pollChoiceDelete"/></s:set> +<s:set var='upTitle'><s:text name="pollen.action.pollChoiceUp"/></s:set> +<s:set var='downTitle'><s:text name="pollen.action.pollChoiceDown"/></s:set> <div id='choicesTEXT_<s:property value="choiceNumber"/>' class="ui-state-default choicesDiv"> <s:hidden key='%{#prefix}.topiaId' value='%{choice.topiaId}' label=''/> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp index 92357fb..c4a4443 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingList.jsp @@ -24,16 +24,16 @@ <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="sp" uri="/nuiton-tags" %> -<s:set name="prefix">votingList<s:property value="votingListType"/>_<s:property +<s:set var="prefix">votingList<s:property value="votingListType"/>_<s:property value="votingListNumber"/></s:set> -<s:set name="votingList" value="%{votingList}"/> -<s:set name="votingListType" value="%{votingListType}"/> +<s:set var="votingList" value="%{votingList}"/> +<s:set var="votingListType" value="%{votingListType}"/> -<s:set id='deleteVotingListTitle'> +<s:set var='deleteVotingListTitle'> <s:text name="pollen.action.pollVotingListDelete"/> </s:set> -<s:div id='%{#prefix}' cssClass="votingList"> +<div id='<s:property value="%{#prefix}" />' class="votingList"> <fieldset class="ui-widget-content ui-corner-all"> <sp:fielderror fieldName="%{#prefix}"/> @@ -68,17 +68,17 @@ <div class="cleanBoth"></div> <s:hidden key='%{#prefix}.topiaId' value='%{#votingList.topiaId}' label=''/> - <s:div id='%{#prefix}PersonToList'> + <div id='<s:property value="%{#prefix}" />PersonToList'> <%--<%@include file="displayVotingListPersons.jsp" %>--%> <s:iterator value="%{#votingList.pollAccountPersonToList}" status="pstatus" var="personToList"> - <s:set name="personToListNumber"><s:property value="%{#pstatus.index}"/></s:set> - <s:set name="personPrefix"><s:property value="%{#prefix}"/>PersonToList_<s:property + <s:set var="personToListNumber"><s:property value="%{#pstatus.index}"/></s:set> + <s:set var="personPrefix"><s:property value="%{#prefix}"/>PersonToList_<s:property value="%{#personToListNumber}"/></s:set> <%@include file="displayPersonToList.jsp" %> </s:iterator> - </s:div> + </div> <hr/> <div class="cleanBoth" align="center"> <s:submit id='%{#prefix}_addPersonToList' @@ -96,4 +96,4 @@ </div> </fieldset> <br/> -</s:div> +</div> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp index c43a5f3..112ab77 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/displayVotingListPersons.jsp @@ -23,19 +23,19 @@ <%@ page language="java" contentType="text/html" pageEncoding="utf-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> -<s:set name="prefix">votingList<s:property value="votingListType"/>_<s:property +<s:set var="prefix">votingList<s:property value="votingListType"/>_<s:property value="votingListNumber"/></s:set> -<s:set name="votingList" value="%{votingList}"/> -<s:set name="votingListType" value="%{votingListType}"/> -<s:set name="startNumber" value="%{startNumber}"/> +<s:set var="votingList" value="%{votingList}"/> +<s:set var="votingListType" value="%{votingListType}"/> +<s:set var="startNumber" value="%{startNumber}"/> <s:iterator value="%{#votingList.pollAccountPersonToList}" status="pstatus" var="personToList"> - <s:set name="personToListNumber"> + <s:set var="personToListNumber"> <s:property value="%{#pstatus.index + #startNumber}"/> </s:set> - <s:set name="personPrefix"> + <s:set var="personPrefix"> <s:property value="%{#prefix}"/>PersonToList_<s:property value="%{#personToListNumber}"/></s:set> <%@include file="displayPersonToList.jsp" %> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp index 2148510..b8dcbe2 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/personListToVotingList.jsp @@ -21,7 +21,7 @@ <%@ page language="java" contentType="text/html" pageEncoding="utf-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> -<s:set name="prefix">votingList_<s:property value="votingListNumber"/></s:set> +<s:set var="prefix">votingList_<s:property value="votingListNumber"/></s:set> <script type="text/javascript"> jQuery(document).ready(function () { @@ -32,6 +32,6 @@ }); </script> -<s:div id='personToList_%{votingListNumber}'> +<div id='personToList_${votingListNumber}'> <%--Where to load personToList--%> -</s:div> +</div> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp index 6b50683..46f07e9 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/pollForm.jsp @@ -88,7 +88,7 @@ <script type="text/javascript" src='<s:url value="/js/jquery.tipTip.minified.js"/>'></script> -<s:url id='errorImg' value='/img/exclamation.png'/> +<s:url var='errorImg' value='/img/exclamation.png'/> <title> <s:if test="edit"> @@ -307,9 +307,9 @@ <div id="pollTypeRESTRICTED" class="pollType"> <s:iterator value="restrictedVotingList" status="status" var="votingList"> - <s:set name="votingListNumber"><s:property + <s:set var="votingListNumber"><s:property value="%{#status.index}"/></s:set> - <s:set name="votingListType">RESTRICTED</s:set> + <s:set var="votingListType">RESTRICTED</s:set> <%@include file="displayVotingList.jsp" %> </s:iterator> </div> @@ -318,9 +318,9 @@ <div id="votingListGROUP"> <s:iterator value="groupVotingList" status="status" var="votingList"> - <s:set name="votingListNumber"><s:property + <s:set var="votingListNumber"><s:property value="%{#status.index}"/></s:set> - <s:set name="votingListType">GROUP</s:set> + <s:set var="votingListType">GROUP</s:set> <%@include file="displayVotingList.jsp" %> </s:iterator> </div> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp index 39b657d..829c01d 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/result.jsp @@ -78,8 +78,8 @@ <h1 class="titleVoteCounting"><s:property value="poll.title"/></h1> <%-- Informations sur le sondage --%> -<s:set name="showVoteUrl" value="true"/> -<s:set name="showResultUrl" value="false"/> +<s:set var="showVoteUrl" value="true"/> +<s:set var="showResultUrl" value="false"/> <%@include file="pollInformation.jsp" %> <h4> @@ -90,7 +90,7 @@ <h4><s:property value="victoryMessage"/> <br/> <s:iterator value="pollResult.topRanking" var="result"> - <s:set name="choiceName" value="%{getChoiceName(#result.choiceId)}"/> + <s:set var="choiceName" value="%{getChoiceName(#result.choiceId)}"/> <s:if test="textType"> <s:property value="%{#choiceName}"/> </s:if> @@ -98,13 +98,13 @@ <s:property value="%{getResultAsDate(#choiceName)}"/> </s:elseif> <s:elseif test="imageType"> - <s:url id="imageUrl" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrl" namespace="/io" action="getPollChoiceImage" escapeAmp="false"> <s:param name="choiceId" value="%{#choiceName}"/> <s:param name="pollId" value="poll.pollId"/> <s:param name="thumb" value="false"/> </s:url> - <s:url id="imageUrlThumb" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrlThumb" namespace="/io" action="getPollChoiceImage" escapeAmp="false"> <s:param name="choiceId" value="%{#choiceName}"/> <s:param name="pollId" value="poll.pollId"/> @@ -163,7 +163,7 @@ <div> <s:iterator value="groupIds" var="groupId" status="status"> <hr/> - <s:set name="groupName" value="%{getGroupName(#groupId)}"/> + <s:set var="groupName" value="%{getGroupName(#groupId)}"/> <img id='chart_Group_<s:property value="#status.index"/>' alt="<s:property value='%{#groupName}'/>" title="<s:property value='%{#groupName}'/>"/> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp index 40a5bd8..5144909 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/poll/vote.jsp @@ -39,13 +39,13 @@ <script type="text/javascript" src="<s:url value='/js/jquery.lightbox-0.5.js' />"></script> -<s:set id='deleteCommentTitle'> +<s:set var='deleteCommentTitle'> <s:text name="pollen.title.delete.pollComment"/> </s:set> -<s:set id='deleteCommentVote'> +<s:set var='deleteCommentVote'> <s:text name="pollen.title.delete.pollVote"/> </s:set> -<s:set id='deleteCommentChoice'> +<s:set var='deleteCommentChoice'> <s:text name="pollen.title.delete.pollChoice"/> </s:set> @@ -115,9 +115,9 @@ <h1 class="titleVote"><s:property value="poll.title"/></h1> <!-- Informations sur le sondage --> -<s:set name="showVoteUrl" value="false"/> -<s:set name="showResultUrl" value="true"/> -<s:set name="showVoteVisibility" value="true"/> +<s:set var="showVoteUrl" value="false"/> +<s:set var="showResultUrl" value="true"/> +<s:set var="showVoteVisibility" value="true"/> <%@include file="pollInformation.jsp" %> <div id="pollZone"> @@ -205,13 +205,13 @@ <s:if test="imageType"> <s:iterator value="poll.choice" var="choice"> - <s:url id="imageUrl" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrl" namespace="/io" action="getPollChoiceImage" escapeAmp="false"> <s:param name="choiceId" value="%{getImageChoiceName(#choice)}"/> <s:param name="pollId" value="poll.pollId"/> <s:param name="thumb" value="false"/> </s:url> - <s:url id="imageUrlThumb" namespace="/io" action="getPollChoiceImage" + <s:url var="imageUrlThumb" namespace="/io" action="getPollChoiceImage" escapeAmp="false"> <s:param name="choiceId" value="%{getImageChoiceName(#choice)}"/> <s:param name="pollId" value="poll.pollId"/> @@ -252,7 +252,7 @@ value="%{pollAccount.votingId}" theme="simple"/> </th> </s:else> - <s:set name="template" value="%{choiceFragment}"/> + <s:set var="template" value="%{choiceFragment}"/> <s:iterator value="poll.choice" var="choice" status="status"> <th> <jsp:include page="${template}"/> @@ -293,7 +293,7 @@ </s:if> </td> <s:iterator value="poll.choice" var="choice"> - <s:set name="currentVoteChoice" + <s:set var="currentVoteChoice" value="%{#vote.getChoiceVoteToChoice(#choice)}"/> <%--s:if test="poll.anonymous"> <td class="anonymous">?</td> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp index 4adbe4c..8b06b67 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/pollListHelper.jsp @@ -27,26 +27,26 @@ <script type="text/javascript" src="<s:url value='/js/gridHelper.js' />"></script> -<s:url id="loadUrl" action="getPolls" namespace="/json"/> +<s:url var="loadUrl" action="getPolls" namespace="/json"/> -<s:url id="voteUrl" action="votefor/" namespace="/poll"/> -<s:url id='voteImg' value='/img/vote.png'/> -<s:set id='voteTitle'><s:text name="pollen.action.pollVote"/></s:set> -<s:set id='accessVoteTitle'><s:text name="pollen.action.pollAccessVote"/></s:set> +<s:url var="voteUrl" action="votefor/" namespace="/poll"/> +<s:url var='voteImg' value='/img/vote.png'/> +<s:set var='voteTitle'><s:text name="pollen.action.pollVote"/></s:set> +<s:set var='accessVoteTitle'><s:text name="pollen.action.pollAccessVote"/></s:set> -<s:url id='blankImg' value='/img/blank.png'/> +<s:url var='blankImg' value='/img/blank.png'/> -<s:url id="summaryUrl" action="summary/" namespace="/poll"/> -<s:url id='summaryImg' value='/img/edit.png'/> -<s:set id='summaryTitle'><s:text name="pollen.action.pollSummary"/></s:set> +<s:url var="summaryUrl" action="summary/" namespace="/poll"/> +<s:url var='summaryImg' value='/img/edit.png'/> +<s:set var='summaryTitle'><s:text name="pollen.action.pollSummary"/></s:set> -<s:url id="resultUrl" action="results/" namespace="/poll"/> -<s:url id='resultImg' value='/img/count.png'/> -<s:set id='resultTitle'><s:text name="pollen.action.pollResult"/></s:set> +<s:url var="resultUrl" action="results/" namespace="/poll"/> +<s:url var='resultImg' value='/img/count.png'/> +<s:set var='resultTitle'><s:text name="pollen.action.pollResult"/></s:set> -<s:url id="deleteUrl" action="confirmDeletePoll/" namespace="/poll"/> -<s:url id='deleteImg' value='/img/delete.png'/> -<s:set id='deleteTitle'><s:text name="pollen.action.pollDelete"/></s:set> +<s:url var="deleteUrl" action="confirmDeletePoll/" namespace="/poll"/> +<s:url var='deleteImg' value='/img/delete.png'/> +<s:set var='deleteTitle'><s:text name="pollen.action.pollDelete"/></s:set> <script type="text/javascript"> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp index 9d7640e..4de6a9e 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/createdList.jsp @@ -52,7 +52,7 @@ <h4><s:text name="pollen.title.pollsCreatedList.legend"/></h4> -<s:url id="loadUrl" action="getCreatedPolls" namespace="/json" +<s:url var="loadUrl" action="getCreatedPolls" namespace="/json" escapeAmp="false"/> <sjg:grid id="polls" dataType="json" href="%{loadUrl}" gridModel="data" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp index a074adb..cc39f07 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteList.jsp @@ -30,16 +30,16 @@ <script type="text/javascript" src="<s:url value='/js/favoriteList.js' />"></script> -<s:url id="loadPollAccounts" action="getFavoriteListPollAccounts" +<s:url var="loadPollAccounts" action="getFavoriteListPollAccounts" namespace="/json" escapeAmp="false"> <s:param name="favoriteListId" value="%{favoriteList.topiaId}"/> </s:url> -<%--<s:url id="editPollAccounts" action="editPollAccount" namespace="/user">--%> +<%--<s:url var="editPollAccounts" action="editPollAccount" namespace="/user">--%> <%--<s:param name="favoriteListId" value="%{favoriteList.topiaId}"/>--%> <%--</s:url>--%> -<s:url id="editFavoriteList" action="editFavoriteList" namespace="/user"> +<s:url var="editFavoriteList" action="editFavoriteList" namespace="/user"> <s:param name="favoriteListId" value="%{favoriteList.topiaId}"/> </s:url> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp index a59381f..40b36d2 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/favoriteLists.jsp @@ -41,7 +41,7 @@ <s:text name="pollen.title.favoriteLists"/> </h1> -<s:url id="loadFavoriteLists" action="getFavoriteLists" namespace="/json"/> +<s:url var="loadFavoriteLists" action="getFavoriteLists" namespace="/json"/> <script type="text/javascript"> @@ -59,7 +59,7 @@ }); </script> -<s:set name='csvHelp'> +<s:set var='csvHelp'> <div><s:text name='pollen.common.favoriteList.csvImport.help'/> <br/> <pre style="background-color: #ffffff;color: #000000;"> diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp index 42c3126..1604360 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/invitedList.jsp @@ -36,7 +36,7 @@ <h4><s:text name="pollen.title.pollsInvitedList.legend"/></h4> -<s:url id="loadInvitedUrl" action="getInvitedPolls" +<s:url var="loadInvitedUrl" action="getInvitedPolls" namespace="/json" escapeAmp="false"/> <sjg:grid dataType="json" href="%{loadInvitedUrl}" gridModel="data" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp index a946748..a71f440 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/jsp/user/participatedList.jsp @@ -36,7 +36,7 @@ <h4><s:text name="pollen.title.pollsParticipatedList.legend"/></h4> -<s:url id="loadParticipatedUrl" action="getParticipatedPolls" +<s:url var="loadParticipatedUrl" action="getParticipatedPolls" namespace="/json" escapeAmp="false"/> <sjg:grid dataType="json" href="%{loadParticipatedUrl}" gridModel="data" diff --git a/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml b/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml index a3c1ff4..e534d86 100644 --- a/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml +++ b/pollen-ui-struts2/src/main/webapp/WEB-INF/web.xml @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2009 - 2012 CodeLutin, Tony Chemit + Copyright (C) 2009 - 2016 CodeLutin, Tony Chemit %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -28,7 +28,6 @@ <display-name>Pollen</display-name> - <filter> <filter-name>topiaTransaction</filter-name> <filter-class>org.chorem.pollen.ui.PollenTopiaTransactionFilter</filter-class> @@ -36,10 +35,9 @@ <filter> <filter-name>struts-prepare</filter-name> - <filter-class> - org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter - </filter-class> + <filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareFilter</filter-class> </filter> + <filter> <filter-name>ShiroFilter</filter-name> <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class> @@ -52,9 +50,7 @@ <filter> <filter-name>struts-execute</filter-name> - <filter-class> - org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter - </filter-class> + <filter-class>org.apache.struts2.dispatcher.filter.StrutsExecuteFilter</filter-class> </filter> <filter-mapping> diff --git a/pom.xml b/pom.xml index a11df27..0994cca 100644 --- a/pom.xml +++ b/pom.xml @@ -163,7 +163,7 @@ <h2Version>1.3.176</h2Version> <postgresqlVersion>9.4-1205-jdbc41</postgresqlVersion> - <struts2Version>2.3.24.1</struts2Version> + <struts2Version>2.5.5</struts2Version> <jqueryPluginVersion>3.7.1</jqueryPluginVersion> <shiroVersion>1.2.4</shiroVersion> <log4jVersion>2.7</log4jVersion> @@ -420,18 +420,6 @@ <version>${struts2Version}</version> </dependency> - <dependency> - <groupId>org.apache.struts.xwork</groupId> - <artifactId>xwork-core</artifactId> - <version>${struts2Version}</version> - <exclusions> - <exclusion> - <groupId>org.springframework</groupId> - <artifactId>spring-test</artifactId> - </exclusion> - </exclusions> - </dependency> - <!-- Logging --> <dependency> <groupId>org.apache.logging.log4j</groupId> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit ae812b3ddb4e1e85833f427fe7b8a712fabfcb8e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:01:13 2016 +0100 refs #1308: Update c3p0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0994cca..47223bc 100644 --- a/pom.xml +++ b/pom.xml @@ -454,7 +454,7 @@ <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> - <version>0.9.5.1</version> + <version>0.9.5.2</version> <scope>runtime</scope> </dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit c5b5a1b801989d763aaf68628de1d0e471d31c8c Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:36:45 2016 +0100 refs #1308: Update shiro --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 47223bc..598e87f 100644 --- a/pom.xml +++ b/pom.xml @@ -165,7 +165,7 @@ <postgresqlVersion>9.4-1205-jdbc41</postgresqlVersion> <struts2Version>2.5.5</struts2Version> <jqueryPluginVersion>3.7.1</jqueryPluginVersion> - <shiroVersion>1.2.4</shiroVersion> + <shiroVersion>1.3.2</shiroVersion> <log4jVersion>2.7</log4jVersion> <jettyVersion>9.3.6.v20151106</jettyVersion> <jettyPluginVersion>9.3.6.v20151106</jettyPluginVersion> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 530a8aed5687566d874737a92c3af2c529fce264 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:48:12 2016 +0100 refs #1308: Update selenium --- pollen-ui-struts2/pom.xml | 2 +- pollen-ui-struts2/src/it/createPoll/{README.txt => README.md} | 0 .../src/it/pollCommentVisibility/{README.txt => README.md} | 0 .../src/it/pollVoteVisibility/{README.txt => README.md} | 0 pollen-ui-struts2/src/it/pollen-ui-it/{README.txt => README.md} | 0 pollen-ui-struts2/src/it/pollen-ui-it/pom.xml | 2 +- pollen-ui-struts2/src/it/security/{README.txt => README.md} | 0 pollen-ui-struts2/src/main/assembly/dist/pollen.properties | 2 +- pom.xml | 6 +++--- 9 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pollen-ui-struts2/pom.xml b/pollen-ui-struts2/pom.xml index 85893b2..f93f6eb 100644 --- a/pollen-ui-struts2/pom.xml +++ b/pollen-ui-struts2/pom.xml @@ -260,7 +260,7 @@ </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> - <artifactId>selenium-htmlunit-driver</artifactId> + <artifactId>htmlunit-driver</artifactId> <scope>provided</scope> </dependency> <dependency> diff --git a/pollen-ui-struts2/src/it/createPoll/README.txt b/pollen-ui-struts2/src/it/createPoll/README.md similarity index 100% rename from pollen-ui-struts2/src/it/createPoll/README.txt rename to pollen-ui-struts2/src/it/createPoll/README.md diff --git a/pollen-ui-struts2/src/it/pollCommentVisibility/README.txt b/pollen-ui-struts2/src/it/pollCommentVisibility/README.md similarity index 100% rename from pollen-ui-struts2/src/it/pollCommentVisibility/README.txt rename to pollen-ui-struts2/src/it/pollCommentVisibility/README.md diff --git a/pollen-ui-struts2/src/it/pollVoteVisibility/README.txt b/pollen-ui-struts2/src/it/pollVoteVisibility/README.md similarity index 100% rename from pollen-ui-struts2/src/it/pollVoteVisibility/README.txt rename to pollen-ui-struts2/src/it/pollVoteVisibility/README.md diff --git a/pollen-ui-struts2/src/it/pollen-ui-it/README.txt b/pollen-ui-struts2/src/it/pollen-ui-it/README.md similarity index 100% rename from pollen-ui-struts2/src/it/pollen-ui-it/README.txt rename to pollen-ui-struts2/src/it/pollen-ui-it/README.md diff --git a/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml b/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml index a6ace8a..da9249a 100644 --- a/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml +++ b/pollen-ui-struts2/src/it/pollen-ui-it/pom.xml @@ -94,7 +94,7 @@ </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> - <artifactId>selenium-htmlunit-driver</artifactId> + <artifactId>htmlunit-driver</artifactId> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> diff --git a/pollen-ui-struts2/src/it/security/README.txt b/pollen-ui-struts2/src/it/security/README.md similarity index 100% rename from pollen-ui-struts2/src/it/security/README.txt rename to pollen-ui-struts2/src/it/security/README.md diff --git a/pollen-ui-struts2/src/main/assembly/dist/pollen.properties b/pollen-ui-struts2/src/main/assembly/dist/pollen.properties index 2365dc3..0527d3b 100644 --- a/pollen-ui-struts2/src/main/assembly/dist/pollen.properties +++ b/pollen-ui-struts2/src/main/assembly/dist/pollen.properties @@ -23,7 +23,7 @@ # # Pollen - v ${project.version} Configuration # -# See README.txt for more informations about howto custmize Pollen. +# See README.md for more informations about howto custmize Pollen. # # all data are in stored in data diff --git a/pom.xml b/pom.xml index 598e87f..6485126 100644 --- a/pom.xml +++ b/pom.xml @@ -170,7 +170,7 @@ <jettyVersion>9.3.6.v20151106</jettyVersion> <jettyPluginVersion>9.3.6.v20151106</jettyPluginVersion> <hibernateVersion>4.3.11.Final</hibernateVersion> - <seleniumVersion>2.48.2</seleniumVersion> + <seleniumVersion>3.0.1</seleniumVersion> <mockitoVersion>1.10.19</mockitoVersion> <pollenI18nBundle>pollen-i18n</pollenI18nBundle> @@ -532,8 +532,8 @@ </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> - <artifactId>selenium-htmlunit-driver</artifactId> - <version>${seleniumVersion}</version> + <artifactId>htmlunit-driver</artifactId> + <version>2.23.2</version> <scope>test</scope> </dependency> <dependency> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit 85dc30b9dff68a53315cb4dc64fc4b41d65caf11 Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 22:49:10 2016 +0100 refs #1308: Update postgres --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6485126..397d5b4 100644 --- a/pom.xml +++ b/pom.xml @@ -162,7 +162,7 @@ <nuitonUtilsVersion>3.0-rc-16</nuitonUtilsVersion> <h2Version>1.3.176</h2Version> - <postgresqlVersion>9.4-1205-jdbc41</postgresqlVersion> + <postgresqlVersion>9.4.1212.jre7</postgresqlVersion> <struts2Version>2.5.5</struts2Version> <jqueryPluginVersion>3.7.1</jqueryPluginVersion> <shiroVersion>1.3.2</shiroVersion> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch pollen-udpate-1.6 in repository pollen_1.x. See https://gitlab.nuiton.org/None/pollen_1.x.git commit a9fe8268343886f010996be17eae80cf1a3fac0e Author: Eric Chatellier <eric.chatellier@gmail.com> Date: Tue Dec 13 23:13:06 2016 +0100 refs #1308: Update mockito --- .../test/java/org/chorem/pollen/business/persistence/PollTest.java | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollTest.java b/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollTest.java index f483ee3..5f60a8b 100644 --- a/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollTest.java +++ b/pollen-persistence/src/test/java/org/chorem/pollen/business/persistence/PollTest.java @@ -287,8 +287,8 @@ public class PollTest { Mockito.when(poll.isAddChoiceFinished(Mockito.any(Date.class))).thenCallRealMethod(); Mockito.doCallRealMethod().when(poll).setChoiceAddAllowed(Mockito.anyBoolean()); - Mockito.doCallRealMethod().when(poll).setBeginChoiceDate(Mockito.any(Date.class)); - Mockito.doCallRealMethod().when(poll).setEndChoiceDate(Mockito.any(Date.class)); + Mockito.doCallRealMethod().when(poll).setBeginChoiceDate((Date)Mockito.any()); + Mockito.doCallRealMethod().when(poll).setEndChoiceDate((Date)Mockito.any()); // -- choiceAddAllowed -- // // -- choiceAddAllowed -- // diff --git a/pom.xml b/pom.xml index 397d5b4..9ab8923 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ <jettyPluginVersion>9.3.6.v20151106</jettyPluginVersion> <hibernateVersion>4.3.11.Final</hibernateVersion> <seleniumVersion>3.0.1</seleniumVersion> - <mockitoVersion>1.10.19</mockitoVersion> + <mockitoVersion>2.3.2</mockitoVersion> <pollenI18nBundle>pollen-i18n</pollenI18nBundle> <!-- license to use --> -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm