Compare commits

...

195 Commits

Author SHA1 Message Date
Lukasz Lenart 2fb25064f2 [maven-release-plugin] copy for tag STRUTS_2_3_2
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2@1310830 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 19:27:57 +00:00
Lukasz Lenart a903a80600 [maven-release-plugin] prepare release STRUTS_2_3_2
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1310829 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 19:27:47 +00:00
Lukasz Lenart 79de91800e Prepares to release 2.3.2 version
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1310826 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 18:53:40 +00:00
Lukasz Lenart d21a0c8e42 WW-3746 Upgrades OGNL to version 3.0.5 to solve problem with running Struts 2 application within secured environment
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1310686 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 07:30:06 +00:00
Lukasz Lenart aef1c6aaf6 WW-3174 additional test case for Dynamic Attributes support
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1310417 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 15:56:45 +00:00
Lukasz Lenart 3cd48592dd WW-3174 adds logic to support dynamic attributes in tags used with FreeMarker templates
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1310221 13f79535-47bb-0310-9956-ffa450edef68
2012-04-06 08:17:00 +00:00
Lukasz Lenart 7eb38fdb66 WW-3636 adds className parameter to @Action annotation, can be useful when used with Spring Framework to instantiate actions
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1309089 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 18:34:30 +00:00
Lukasz Lenart 4b9445de80 WW-3779 adds description of missing extension points and removes some code duplications
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1307906 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 21:22:04 +00:00
Lukasz Lenart c71a8dfd2d WW-3780 makes JSON plugin more extendable
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1307897 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 20:39:53 +00:00
Lukasz Lenart 2d5fdbe6dd WW-3781 upgrades XStream to 1.4.2
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1307617 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 21:13:48 +00:00
Lukasz Lenart 35b84844d9 WW-3750 reduces scope of cashing
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1307614 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 21:04:33 +00:00
René Gielen c7a0ec6256 Added CDI plugin to dependency management section
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1304631 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 22:25:13 +00:00
Lukasz Lenart 880e5d1b7d WW-3783 upgrades json-lib to 2.3
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1304317 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 12:44:12 +00:00
René Gielen b0d14cea04 WW-3768:
ThreadLocal was created but not removed appropriately

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1304070 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 21:17:07 +00:00
Lukasz Lenart c52cd98c9e WW-3777 converts UrlHelper into an interface with default implementation, cleanups code and adds support for generics
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1303298 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 07:11:29 +00:00
Lukasz Lenart f01f6e3cfe Merges Struts 2 ClassLoaderUtils into XWork 2 ClassLoaderUtil
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1302821 13f79535-47bb-0310-9956-ffa450edef68
2012-03-20 10:17:37 +00:00
Lukasz Lenart b5a58f1b90 Improves config-browser plugin, cleanups code, adds support for Convention plugin
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1302806 13f79535-47bb-0310-9956-ffa450edef68
2012-03-20 09:17:02 +00:00
Lukasz Lenart 9831ecf543 Adds better way to handle JavaScript injection into request parameters
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1302803 13f79535-47bb-0310-9956-ffa450edef68
2012-03-20 09:10:37 +00:00
Lukasz Lenart 06d2aa4981 WW-3773 recreates HttpSession and SessionMap if HttpSession doesn't exist
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1301989 13f79535-47bb-0310-9956-ffa450edef68
2012-03-17 20:08:37 +00:00
Lukasz Lenart 98af0ac15f WW-3774 - initialize portlet mocks only in case if portlet dependencies are available
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1301531 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 14:06:25 +00:00
Lukasz Lenart 86d97dc20b WW-3721 upgrades to latest Struts Master
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1300550 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 14:04:13 +00:00
Lukasz Lenart 6399ec283b WW-3771 upgrades to the latest FreeMarker version
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1297997 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 15:47:52 +00:00
Lukasz Lenart f070d7e830 WW-3769 adds missing line of code to generate namespace without explicit specifying it
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1297994 13f79535-47bb-0310-9956-ffa450edef68
2012-03-07 15:34:38 +00:00
Lukasz Lenart da85bb6abd WW-3631 - adds additional excluded params to avoid session / request / response tempering
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1297521 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 15:24:08 +00:00
Lukasz Lenart 524a602fa7 WW-3662 - improves support for JBoss server
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1297384 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 08:48:30 +00:00
Lukasz Lenart 9bd53cc212 WW-3762 - extracts one huge converter into smaller classes and implements better conversion mechanism for collections
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1297347 13f79535-47bb-0310-9956-ffa450edef68
2012-03-06 06:26:38 +00:00
Lukasz Lenart 26ed57b11a WW-3748 s:bean shouldn't load class, just delegate that to ObjectFactory
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1295146 13f79535-47bb-0310-9956-ffa450edef68
2012-02-29 15:14:22 +00:00
René Gielen 20689c0cf7 WW-3767:
- added support for servlet container JNDI lookup key java:comp/env/BeanManager
- added support for custom configuration constant to override standard lookup

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1294420 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 00:35:04 +00:00
René Gielen 94d75f9cbe Simple code reformatting, no actual change.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1294413 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 00:28:57 +00:00
Lukasz Lenart 5aa97c1b4b WW-3753 - adheres AnnotationActionValidatorManager to ActionValidatorManager interface's contract
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1293795 13f79535-47bb-0310-9956-ffa450edef68
2012-02-26 09:52:12 +00:00
Lukasz Lenart f47cfa889a WW-3753 - adheres AnnotationActionValidatorManager to ActionValidatorManager interface's contract
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1293791 13f79535-47bb-0310-9956-ffa450edef68
2012-02-26 09:28:10 +00:00
Lukasz Lenart 9abf8dd346 WW-3763 restores the old behaviour of Portlet plugin, to allow use portlets in standalone application as well
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1293127 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 08:14:55 +00:00
Lukasz Lenart a9b26ca87f WW-3761 - improves loading templates from file path
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1292722 13f79535-47bb-0310-9956-ffa450edef68
2012-02-23 09:28:13 +00:00
Lukasz Lenart 6ec3d2a8b6 WW-3758 - upgrade commons-lang to version 3.1
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1292705 13f79535-47bb-0310-9956-ffa450edef68
2012-02-23 08:40:53 +00:00
Lukasz Lenart 4b40771643 WW-3760 changes access level to protected to allow override
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1292259 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 12:42:01 +00:00
René Gielen f3f8278411 WW-3757
Show how to produce sanitized output of user inputted data

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1290994 13f79535-47bb-0310-9956-ffa450edef68
2012-02-19 12:51:44 +00:00
René Gielen 4a5211716f WW-3757
Show how to produce sanitized output of user inputted data

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1290827 13f79535-47bb-0310-9956-ffa450edef68
2012-02-18 17:44:04 +00:00
Johannes Geppert ef8c44967d WW-3738: Struts2 Maven Archetypes are broken
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1244929 13f79535-47bb-0310-9956-ffa450edef68
2012-02-16 11:02:27 +00:00
Johannes Geppert 29c2eb778b WW-3738: Struts2 Maven Archetypes are broken
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1243174 13f79535-47bb-0310-9956-ffa450edef68
2012-02-11 22:33:36 +00:00
Johannes Geppert eafd29bea7 WW-3750: ScopesHashModel calls OgnlValueStack.findValue too many times during rendering freemarker templates
Patch provided by Pelladi Gabor

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1241573 13f79535-47bb-0310-9956-ffa450edef68
2012-02-07 19:41:45 +00:00
Johannes Geppert 261c5fb996 WW-3736: Client Validation is broken for Struts2 themes
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1240312 13f79535-47bb-0310-9956-ffa450edef68
2012-02-03 19:44:51 +00:00
Maurizio Cucchiara b5eebb9842 WW-3747 - regular expressions in combination with advanced wildcards don't work
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1237092 13f79535-47bb-0310-9956-ffa450edef68
2012-01-28 16:40:38 +00:00
Maurizio Cucchiara cc6edbb49a Security issue fixed (see [1] for further details)
[1] https://cwiki.apache.org/confluence/display/WW/S2-009

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1234212 13f79535-47bb-0310-9956-ffa450edef68
2012-01-21 00:04:43 +00:00
Lukasz Lenart 3ec7b8ca22 WW-3743 - removes unnecessary second call to getProperty() and removes some unused code
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1232518 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 18:14:19 +00:00
Lukasz Lenart 4a00dbb6b3 WW-3745 - solves wrong documentation snippets regarding Validation
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1232423 13f79535-47bb-0310-9956-ffa450edef68
2012-01-17 14:27:51 +00:00
Maurizio Cucchiara bbec257e3b exploit
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1231642 13f79535-47bb-0310-9956-ffa450edef68
2012-01-15 09:01:54 +00:00
Lukasz Lenart 4599676018 Changes home url to point to proper url
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1229927 13f79535-47bb-0310-9956-ffa450edef68
2012-01-11 08:21:29 +00:00
Maurizio Cucchiara 7cb22a719c Upgraded the site plugin to the latest version
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1229535 13f79535-47bb-0310-9956-ffa450edef68
2012-01-10 13:36:44 +00:00
John Lindal 031098fa01 WW-3740 apply allowed-methods filter to wildcard actions
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1228497 13f79535-47bb-0310-9956-ffa450edef68
2012-01-06 23:19:32 +00:00
Lukasz Lenart 872a7b0b6d WW-3733 - adds missing PortletContext to ActionContext to avoid NPE during PortletResult initialisation
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1226265 13f79535-47bb-0310-9956-ffa450edef68
2012-01-01 17:29:25 +00:00
Lukasz Lenart 248d0f5879 WW-3284 - adds new Number tag
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1225353 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 21:47:20 +00:00
Lukasz Lenart 54945c5417 Code formatting
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1225339 13f79535-47bb-0310-9956-ffa450edef68
2011-12-28 21:16:31 +00:00
Lukasz Lenart 9cad25f258 Merges changes from 2.3.x branch
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1225038 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 22:34:37 +00:00
Lukasz Lenart 47e12adc0e WW-3414 add JavaDoc comments about new API
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1222075 13f79535-47bb-0310-9956-ffa450edef68
2011-12-22 07:08:20 +00:00
Lukasz Lenart 5563389dc6 WW-3414 removes not serializable field from XWorkList and uses Object Factory to obtain instance o XWorkBasicConverter
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1222068 13f79535-47bb-0310-9956-ffa450edef68
2011-12-22 06:51:14 +00:00
Johannes Geppert 21fcf36ad3 WW-3727: com/opensymphony/xwork2/validator/default.xml uses old DTD
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1221462 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 19:54:24 +00:00
Johannes Geppert 970251ff95 Update to current 2.3 DTD
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1221225 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 12:22:28 +00:00
Lukasz Lenart 5ec51ae1bc Adds repository tag and updates to latest version
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1220551 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 21:46:41 +00:00
Lukasz Lenart 09f7f37d72 WW-3264 improves strict DMI mode
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1215253 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 19:53:42 +00:00
Lukasz Lenart 3683b8f7fd Removes wrong .equal() and formats code
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1215225 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 17:04:00 +00:00
Lukasz Lenart 659a688d25 Improves adding tokens to collection
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1215224 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 17:02:42 +00:00
Lukasz Lenart 0c61bf4c34 Removes duplicated dependencies from poms
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1215053 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 07:29:09 +00:00
Lukasz Lenart d91a168e3f Uses compatible version of Reports plugin with Maven 3
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1214267 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 14:44:29 +00:00
Lukasz Lenart 47deea981b WW-3072 - shows properties of Action object instead of Action class
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1212532 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 17:34:15 +00:00
Lukasz Lenart c6af386d57 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1212123 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 21:09:17 +00:00
Lukasz Lenart 133ca637f0 [maven-release-plugin] prepare release STRUTS_2_3_1
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1212121 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 21:05:31 +00:00
Johannes Geppert 19391d3b7f WW-2357: doubleEmptyOption, doubleHeaderKey and doubleHeaderValue ignored in doubleselect tag
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1211074 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 19:57:35 +00:00
Wesley Wannemacher b178a6a6d4 WW-3712
- added css.ftl to the radiomap.ftl template
- added s:radio to showcase to make it easier to test s:radio

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1211023 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 17:01:50 +00:00
Lukasz Lenart bbfd03dfb5 WW-3687 adds Context Path to the error message
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1210360 13f79535-47bb-0310-9956-ffa450edef68
2011-12-05 08:31:39 +00:00
Lukasz Lenart 61478a9537 WW-3713 allows to return content not only for GET method - correct misspelled word
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1207859 13f79535-47bb-0310-9956-ffa450edef68
2011-11-29 13:09:27 +00:00
Lukasz Lenart 6908bc8d0f WW-3713 allows to return content not only for GET method
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1207576 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 20:34:18 +00:00
Lukasz Lenart a15e99c68e WW-3611 - solves wrong prefix used in examples
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1207014 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 08:21:52 +00:00
Lukasz Lenart 0d5ae3294c Adds filtering for poms built with archetypes
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1204910 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 10:49:29 +00:00
Maurizio Cucchiara e6738c5e75 Removed useless cast
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1204408 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 09:13:25 +00:00
Johannes Geppert 077bea8a6f WW-3629: Provide a JSON Content Handler based on Jackson Lib
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1203772 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 18:02:03 +00:00
Johannes Geppert 380b6df4f7 WW-3708: <s:checkboxlist> UI tag ignores CSS related parameters
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1202798 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 17:29:03 +00:00
Johannes Geppert 6c004040ea WW-3707: Extend the Portlet Showcase with an Portlet Event Example
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1201876 13f79535-47bb-0310-9956-ffa450edef68
2011-11-14 20:24:57 +00:00
Maurizio Cucchiara d0bdf09e7d WW-3701 - Wrong parsing of number with exponents
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1200422 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 16:51:46 +00:00
Maurizio Cucchiara eb17fbb3a0 Reverted redundant cast (tests failed)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1200412 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 16:24:27 +00:00
Maurizio Cucchiara 6aa0509b33 Removed redundant cast and unnecessary boxing
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1200405 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 16:18:27 +00:00
Maurizio Cucchiara 63e704201a WW-3699 - from now, buildValidatorKey includes the package name
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1199696 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 11:03:35 +00:00
Maurizio Cucchiara 04aa19c9e7 WW-3696 - Work-Core JUnit Test Failure: com.opensymphony.xwork2.validator.DefaultValidatorFileParserTest.testParserWithBadXML2( ) (contributed by Jeff Black)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1196325 13f79535-47bb-0310-9956-ffa450edef68
2011-11-01 22:17:33 +00:00
Maurizio Cucchiara 29aae5eb81 WW-3694 - JSONResult - buildSMDObject method is never called internally
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1189257 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 15:06:17 +00:00
Maurizio Cucchiara d5cbcfeedc Inline variable assignment
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188968 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:24:56 +00:00
Maurizio Cucchiara a51b4eacb7 Removed unused private Log, avoid explicit array creation
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188966 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:21:21 +00:00
Maurizio Cucchiara bdc84d2fb1 Code optimization
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188965 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:19:48 +00:00
Maurizio Cucchiara d34eb7adcb WW-3652 - Add example for "anchor" (aka "hash" or "fragment") to RedirectActionResult docs (patch submitted by Jeff Black)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188963 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:14:09 +00:00
Maurizio Cucchiara 2f3a55d0d5 Changed return type to checked conversion
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188962 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:12:56 +00:00
Maurizio Cucchiara bdb24d4eff Replaced while loop with foreach
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1188961 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 23:09:53 +00:00
Maurizio Cucchiara 1253cb074b WW-3693 - Javatemplate engine ignores escape parameter of action message tag
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1183256 13f79535-47bb-0310-9956-ffa450edef68
2011-10-14 09:24:28 +00:00
Maurizio Cucchiara 9897d8ff19 Upgraded freemarker version
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1181791 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 14:03:54 +00:00
Lukasz Lenart cf34593a8a WW-3692 - uses containsBean() method instead of containsBeanDefinition() to resolve aliases of a bean to find
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1181629 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 06:00:56 +00:00
Lukasz Lenart 83b281811d WW-3047 - adds js_script to escape the option label and value
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1181085 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 17:31:07 +00:00
Lukasz Lenart fe190f950f WW-3580 - upgrades OGNL to version 3.0.3 to improve performance
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1180998 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 14:37:28 +00:00
Maurizio Cucchiara 7ddfe6bbda WW-3688 JavaScript URL validator in the FreeMarker template fails many valid URLs
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1178333 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 08:35:31 +00:00
Maurizio Cucchiara c4d253688f WW-3682 - replaced deprecaded api calls with direct replacements
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173248 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:51:00 +00:00
Maurizio Cucchiara e1dcdf5a34 Removed needless jdk check
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:36:15 +00:00
Maurizio Cucchiara 9085922cb7 Removed redundant escape sequence
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173232 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:34:47 +00:00
Maurizio Cucchiara 07031875ea Removed redundant escape sequence
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173231 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:34:20 +00:00
Maurizio Cucchiara 9c139c9288 Removed redundant escape sequence
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173229 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:30:35 +00:00
Maurizio Cucchiara 74085f630e Removed redundant escape sequence
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173228 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:30:13 +00:00
Maurizio Cucchiara 1dbe1093c2 Partial upgrade to java 5
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173226 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:29:37 +00:00
Maurizio Cucchiara c36dfd6a26 Partial upgrade to java 5
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173225 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:26:44 +00:00
Maurizio Cucchiara dcfae203cc Partial upgrade to java 5
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173223 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 16:25:07 +00:00
Maurizio Cucchiara 6f3fa76e3f WW-3681 - testWebFlow(org.apache.struts2.sitegraph.SiteGraphTest) test fails on paths with spaces
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173210 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 15:58:37 +00:00
Lukasz Lenart 75b31dc959 Cleanups poms
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1173125 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 12:58:53 +00:00
Lukasz Lenart ef40344fd1 WW-3633 - better way to timestamps file used in tests
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1172980 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 05:45:30 +00:00
Lukasz Lenart 54c3d64d81 WW-3617 - Adds missing dependency for commons-logging
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1172531 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 09:15:15 +00:00
Lukasz Lenart 3acbfc584d WW-3617 - Updates poms to include CDI plugin in the trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1172492 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 07:02:17 +00:00
Lukasz Lenart 08462f2c15 Move CDI plugin into trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1172467 13f79535-47bb-0310-9956-ffa450edef68
2011-09-19 05:49:16 +00:00
Johannes Geppert bdf0f0da81 WW-3670: JSONWriter cannot load CGLIB classes if its JAR is in SharedLib
Patch provided by Bruno Borges

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1161630 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 16:30:49 +00:00
Johannes Geppert 465d599054 WW-3672: Wrong mime-type for csv media
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1161628 13f79535-47bb-0310-9956-ffa450edef68
2011-08-25 16:23:45 +00:00
Maurizio Cucchiara ad3aae6eba WW-3522 - Template Overriding not work
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1159335 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 18:11:06 +00:00
Maurizio Cucchiara 7e1b849155 Added doc.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1158319 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:12:18 +00:00
Maurizio Cucchiara c035f4cb4a * Exposed getConfigPath method in order to use custom struts.xml file.
* Renamed JUnitTestAction

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157925 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 17:48:07 +00:00
Maurizio Cucchiara 3343161e12 WW-3671 - Two TestAction classes confuse eclipse (sometimes)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157665 13f79535-47bb-0310-9956-ffa450edef68
2011-08-14 20:57:58 +00:00
Maurizio Cucchiara 90f9e3a846 WW-3669 - TestCase for StrutsJUnit4TestCase
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157396 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 17:41:59 +00:00
Maurizio Cucchiara f410fc0cbe * small improvements
* removed duplicate code

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157393 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 16:58:39 +00:00
Maurizio Cucchiara 127ed05ed6 * small optimizations
* removed duplicate code

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157359 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 09:27:10 +00:00
Maurizio Cucchiara 8a9fa85766 dynamic attributes became again a map of String (see http://s.apache.org/dyn)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157353 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 09:04:19 +00:00
Maurizio Cucchiara b4265d369d WW-3668 - Vulnerability: User input is evaluated as an OGNL expression when there's a conversion error
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1157009 13f79535-47bb-0310-9956-ffa450edef68
2011-08-12 08:38:39 +00:00
Maurizio Cucchiara 6137ac2293 Small simplification
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1156296 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 18:29:46 +00:00
Maurizio Cucchiara 5f54b8d087 WW-3668 - Vulnerability: User input is evaluated as an OGNL expression when there's a conversion error (a demonstrative patch).
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1156279 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 17:59:54 +00:00
Lukasz Lenart 481ef2feaf Removes duplicated properties
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1155247 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 07:58:32 +00:00
Lukasz Lenart 4621a4c1a5 Defines property to be used for tlibVersion as it must be valid decimal value
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1155241 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 07:33:52 +00:00
Lukasz Lenart 1e0527777a Adjusts Showcase application after moving JSONValidationInterceptor into JSON plugin
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1155236 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 07:20:09 +00:00
Maurizio Cucchiara ac0679e3ed Made StrutsJunit4 classes abstract
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1153918 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 16:12:15 +00:00
Maurizio Cucchiara f219d9e468 WW-3667 - StrutsJUnit4TestCase does not provide the executeAction method
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1153904 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 15:12:44 +00:00
Johannes Geppert 9e4347d896 WW-3661: node 'tlib-version' syntax error in struts-dojo-tags.tld
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1148449 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 17:10:11 +00:00
Lukasz Lenart 4e06167fdb Moves JSONValidationInterceptor into JSON plugin to keep core consistent
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1145897 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 07:52:54 +00:00
Lukasz Lenart efa15d578f WW-3558 - adds support for JBoss VFS protocol
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1144261 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 11:13:50 +00:00
Lukasz Lenart 9842ae0cd9 WW-3545 - remove comments for JSON output
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1144259 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 11:12:52 +00:00
Lukasz Lenart b6cd7e4fde Adds <#rt/> directive to remove empty spaces
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1144250 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 10:54:01 +00:00
Lukasz Lenart be5efd99b6 Adds <#rt/> directive to remove empty spaces
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1142487 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 19:32:59 +00:00
Johannes Geppert ce7c1c9144 WW-3632: /struts/struts2/trunk/apps/showcase/src/main/webapp/person/index.jsp should use struts tag <s:a> instead of <a>
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1140218 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 15:59:19 +00:00
Johannes Geppert 48c14f46c8 WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139753 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 09:53:13 +00:00
Johannes Geppert 664378b744 WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139740 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 08:45:11 +00:00
Johannes Geppert 16cbf6299e WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139736 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 08:38:59 +00:00
Johannes Geppert 191dc8589e WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139734 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 08:36:56 +00:00
Johannes Geppert 19aa2c1ba6 Rollback changes for WW-3620 because lost of SVN History.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139729 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 08:30:00 +00:00
Johannes Geppert 2462d93e6e WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139182 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 07:32:13 +00:00
Johannes Geppert 1e1705bb41 WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
Remove unnecessary Tests

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139078 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 21:19:00 +00:00
Johannes Geppert a534481cf7 WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
Adopt Portlet Plugin Changes to the Archetypes

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139070 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 20:59:11 +00:00
Johannes Geppert 26f25f1d5a WW-3620: Bring Portlet 2.0 (JSR286) plugin from sandbox to trunk
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1139066 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 20:28:45 +00:00
Maurizio Cucchiara a4772afb3c WW-3653 - Struts2 should base on JDK5 and all tests must passing
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1138699 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 00:24:55 +00:00
Lukasz Lenart 0b7e3768ac Removes snapshots repositories
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1138568 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 17:53:32 +00:00
Lukasz Lenart ea2c03bd71 WW-3653 - reverts to previous Ognl groupId / artifactId
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1138566 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 17:47:46 +00:00
Lukasz Lenart 294d91b989 WW-3653 - uses the latest OGNL version to allow passing tests on JDK5
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1138558 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 17:23:46 +00:00
Johannes Geppert 36d14eb401 WW-3646: Upgrade Spring Dependencies to 3.0.x
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1134395 13f79535-47bb-0310-9956-ffa450edef68
2011-06-10 17:47:55 +00:00
John Lindal 1d962f9472 WW-3264 revert change to root pom
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133949 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 15:43:58 +00:00
John Lindal f54afdc3f4 WW-3264 add allowed-methods configuration for action
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133947 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 15:43:04 +00:00
Lukasz Lenart 4227062548 WW-3644 - check if evaluated expression is not null
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133658 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 05:29:38 +00:00
John Lindal 8f4707d3be WW-3518 remove duplicated code from RestActionInvocation
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133590 13f79535-47bb-0310-9956-ffa450edef68
2011-06-08 22:40:33 +00:00
Lukasz Lenart e5fcc7b33e WW-3645 - uses EnumerationIterator to simplify logic
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133045 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 15:24:31 +00:00
Lukasz Lenart 5e8080abe3 WW-3644 - adds support for expression evaluation in dynamic attributes
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1133044 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 15:18:58 +00:00
Lukasz Lenart c10a8b7f43 WW-3642 - Improves documentation about empty action's extension
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1132110 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 08:45:32 +00:00
Maurizio Cucchiara 4d17f3c7ba WW-3643 - regression for java 1.5 (@Override annotation)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131592 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 03:27:14 +00:00
Maurizio Cucchiara 36b92cea4a WW-3585 - moved the debug interceptor to the bottom of the stack
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131412 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 15:04:30 +00:00
Maurizio Cucchiara 86bade8b22 WW-3637 - Auto reload of properties slowing down application (Check null)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131408 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 14:16:01 +00:00
Maurizio Cucchiara b1f6671c28 Updated licence header
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131339 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 07:09:22 +00:00
Maurizio Cucchiara 9972ef89ab WW-3637 - Auto reload of properties slowing down application
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131338 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 07:05:20 +00:00
Maurizio Cucchiara f3fdaa82dd Renamed in more appropriate way the mail reader webapp
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131323 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 06:21:39 +00:00
Maurizio Cucchiara 9e35546504 Removed needless double check in log
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131315 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 05:16:30 +00:00
Maurizio Cucchiara dcd9409764 Corrected field errors setter
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1131313 13f79535-47bb-0310-9956-ffa450edef68
2011-06-04 04:57:23 +00:00
John Lindal 511c943ed3 WW-3640 extend AbstractInterceptor
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1130878 13f79535-47bb-0310-9956-ffa450edef68
2011-06-03 00:17:27 +00:00
Lukasz Lenart 1337311088 WW-3639 - Solves problem with not accessible DTDs from OpenSymphony site - the site is closed donw
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1130762 13f79535-47bb-0310-9956-ffa450edef68
2011-06-02 19:31:49 +00:00
Lukasz Lenart 05c581f530 Adds url to Apache's Reviewboard
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1130536 13f79535-47bb-0310-9956-ffa450edef68
2011-06-02 13:20:56 +00:00
John Lindal 62bc93b987 XW-386 allow x['y'] as well as x.y
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1129979 13f79535-47bb-0310-9956-ffa450edef68
2011-06-01 00:30:25 +00:00
John Lindal cfa0c91b19 WW-3489 if excludeNullProperties, ignore nulls in maps
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1129976 13f79535-47bb-0310-9956-ffa450edef68
2011-06-01 00:06:22 +00:00
John Lindal 3d1120a607 WW-3635 return application/json instead of application/json-rpc
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1129873 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 19:36:53 +00:00
John Lindal 0f2a57f94b WW-3638 additional unit test for multi-level array in includeProperties
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1129864 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 19:24:27 +00:00
Lukasz Lenart b40ef08d31 WW-2776 - Uses JRRewindableDataSource for JasperReports
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1127396 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 06:35:44 +00:00
Maurizio Cucchiara bc0ac267f6 WW-3626 Corrected URLUtil#normalizeToFileProtocol in order to allow the word jar along the path
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1127142 13f79535-47bb-0310-9956-ffa450edef68
2011-05-24 16:53:44 +00:00
Lukasz Lenart bb5e30d47a WW-3601 - switches to /struts/ and /static/ patterns instead of /struts and /static to handle static content
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1126877 13f79535-47bb-0310-9956-ffa450edef68
2011-05-24 05:49:01 +00:00
Lukasz Lenart f2df9bbff6 WW-3634 - Solves problem with code snippet
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1126873 13f79535-47bb-0310-9956-ffa450edef68
2011-05-24 05:25:21 +00:00
Johannes Geppert 21f731531a WW-3628 : Regression in s:url tag action's method is no longer being included in the resultant url
Patch by Jason Pyeron

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1126101 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 17:15:55 +00:00
Lukasz Lenart b5d9530ee4 Adds CI management section
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1103618 13f79535-47bb-0310-9956-ffa450edef68
2011-05-16 06:19:33 +00:00
Johannes Geppert db3cb1f3af WW-3564: Unable to find a result type for extension
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1099705 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 07:17:33 +00:00
Johannes Geppert 1219e49516 WW-3619: Check LogLevel for all debug, info and warning messages
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1099157 13f79535-47bb-0310-9956-ffa450edef68
2011-05-03 17:53:55 +00:00
Johannes Geppert 1492f4f579 WW-3469: convention plugin does not apply interceptors unless there is an Action
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1097569 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 18:28:25 +00:00
Maurizio Cucchiara 7aa552ff78 WW-3616 - Error in the detail view of the REST Showcase
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1097499 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 15:15:49 +00:00
Maurizio Cucchiara eaa0a9ca6d WW-3615 - Dead code in PlainTextResult
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1097343 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 07:51:45 +00:00
Lukasz Lenart 3650863e0d Solves WW-3542 - adds missing onReset attribute to populateParams() method
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1097319 13f79535-47bb-0310-9956-ffa450edef68
2011-04-28 04:42:21 +00:00
Johannes Geppert 19f61519f9 WW-3614: Incorrect Content-Type in REST Plugin JSON Content Handler
WW-3536: Specify UTF-8 content type in JsonLibHandler

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1097172 13f79535-47bb-0310-9956-ffa450edef68
2011-04-27 16:36:54 +00:00
Johannes Geppert 524aee3131 WW-3241: ShowCase demo application still uses the CodeBehind plugin.
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1096885 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 20:18:52 +00:00
Johannes Geppert 83d57e75c0 WW-3450: supressEmptyParameters option is misspelled
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1096838 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 18:28:38 +00:00
Johannes Geppert 009e65e94f WW-3349: Extension .jspf not recognized as JSP result-type
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1096834 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 18:18:08 +00:00
René Gielen 535bc0163d code cleanup
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1096118 13f79535-47bb-0310-9956-ffa450edef68
2011-04-23 07:46:43 +00:00
René Gielen 9e452375bf WW-3612:
Fixed missing handling of file encoding for JSP includes, e.g. for Component tag

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1095964 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 17:13:41 +00:00
Maurizio Cucchiara 84c11ed257 WW-3607 - Removed extra white space in the checkbox tag template for the simple theme
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1095111 13f79535-47bb-0310-9956-ffa450edef68
2011-04-19 15:20:39 +00:00
Lukasz Lenart 72f8865629 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1090136 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 06:39:51 +00:00
Lukasz Lenart 5dad35e0a0 [maven-release-plugin] prepare release STRUTS_2_2_3
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1090129 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 06:27:42 +00:00
Lukasz Lenart cb9838871b Solves WW-3602 - clears bundle map on resource reloading
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1088493 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 07:55:54 +00:00
Lukasz Lenart 786f6af96f Changes namespace to be optional parameter
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1086842 13f79535-47bb-0310-9956-ffa450edef68
2011-03-30 05:27:52 +00:00
Lukasz Lenart d915dfc33e [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1085708 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 12:08:01 +00:00
677 changed files with 18175 additions and 13480 deletions
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-blank</artifactId>
@@ -34,9 +34,9 @@
<name>Blank Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/blank</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/blank</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps/blank</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/blank</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/blank</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps/blank</url>
</scm>
<dependencies>
@@ -1,6 +1,6 @@
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="username">
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
@@ -26,12 +26,11 @@ import com.opensymphony.xwork2.config.RuntimeConfiguration;
import com.opensymphony.xwork2.config.entities.ActionConfig;
import com.opensymphony.xwork2.config.entities.ResultConfig;
import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
import java.util.Map;
import java.util.List;
import org.apache.struts2.StrutsTestCase;
import java.util.List;
import java.util.Map;
public class ConfigTest extends StrutsTestCase {
protected void assertSuccess(String result) throws Exception {
@@ -62,7 +61,7 @@ public class ConfigTest extends StrutsTestCase {
protected void setUp() throws Exception {
super.setUp();
XmlConfigurationProvider c = new XmlConfigurationProvider("struts.xml");
configurationManager.addConfigurationProvider(c);
configurationManager.addContainerProvider(c);
configurationManager.reload();
}
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-jboss-blank</artifactId>
@@ -34,9 +34,9 @@
<name>JBoss Blank Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/jboss-blank</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/jboss-blank</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps/jboss-blank</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/jboss-blank</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/jboss-blank</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps/jboss-blank</url>
</scm>
<dependencies>
@@ -1,6 +1,6 @@
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="username">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
@@ -26,12 +26,11 @@ import com.opensymphony.xwork2.config.RuntimeConfiguration;
import com.opensymphony.xwork2.config.entities.ActionConfig;
import com.opensymphony.xwork2.config.entities.ResultConfig;
import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
import java.util.Map;
import java.util.List;
import org.apache.struts2.StrutsTestCase;
import java.util.List;
import java.util.Map;
public class ConfigTest extends StrutsTestCase {
protected void assertSuccess(String result) throws Exception {
@@ -62,7 +61,7 @@ public class ConfigTest extends StrutsTestCase {
protected void setUp() throws Exception {
super.setUp();
XmlConfigurationProvider c = new XmlConfigurationProvider("struts.xml");
configurationManager.addConfigurationProvider(c);
configurationManager.addContainerProvider(c);
configurationManager.reload();
}
+5 -5
View File
@@ -26,17 +26,17 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-mailreader</artifactId>
<packaging>war</packaging>
<name>Starter Webapp</name>
<name>Mail Reader Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/mailreader</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/mailreader</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps/mailreader</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/mailreader</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/mailreader</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps/mailreader</url>
</scm>
<dependencies>
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="username">
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
@@ -42,9 +42,9 @@
</modules>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps</url>
</scm>
<profiles>
+8 -8
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-portlet</artifactId>
@@ -34,9 +34,9 @@
<name>Portlet Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/portlet</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/portlet</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps/portlet</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/portlet</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/portlet</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps/portlet</url>
</scm>
<profiles>
@@ -93,8 +93,8 @@
<dependencies>
<dependency>
<groupId>portlet-api</groupId>
<artifactId>portlet-api</artifactId>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
@@ -190,8 +190,8 @@
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
</dependencies>
@@ -0,0 +1,61 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2.portlet.example.eventing;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.portlet.interceptor.PortletRequestAware;
import org.apache.struts2.portlet.interceptor.PortletResponseAware;
import javax.portlet.EventRequest;
import javax.portlet.EventResponse;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
public class ProcessAction extends ActionSupport implements PortletRequestAware, PortletResponseAware {
private PortletRequest request;
private PortletResponse response;
private String name;
public String execute() throws Exception {
if (request instanceof EventRequest) {
EventRequest req = (EventRequest) request;
EventResponse res = (EventResponse) response;
res.setRenderParameter("eventName", (String) req.getEvent().getValue());
return "forward";
} else {
name = request.getParameter("eventName");
}
return SUCCESS;
}
public void setPortletRequest(PortletRequest request) {
this.request = request;
}
public void setPortletResponse(PortletResponse response) {
this.response = response;
}
public String getName() {
return this.name;
}
}
@@ -0,0 +1,52 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.struts2.portlet.example.eventing;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.portlet.interceptor.PortletResponseAware;
import javax.portlet.ActionResponse;
import javax.portlet.PortletResponse;
import javax.xml.namespace.QName;
public class PublishAction extends ActionSupport implements PortletResponseAware {
private PortletResponse response;
private String name;
public String execute() throws Exception {
if (name != null) {
((ActionResponse) response).setEvent(new QName("http://org.apache.struts2.portlets/events", "name"), name);
addActionMessage("Publishing Event with Parameter name : " + name);
}
return SUCCESS;
}
public void setPortletResponse(PortletResponse response) {
this.response = response;
}
public void setName(String name) {
this.name = name;
}
}
@@ -22,7 +22,7 @@ package org.apache.struts2.portlet.example.spring;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang3.StringUtils;
import com.opensymphony.xwork2.ActionSupport;
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="firstName">
<field-validator type="requiredstring">
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="firstName">
<field-validator type="requiredstring">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="edit" extends="struts-portlet-default"
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="eventing" extends="struts-portlet-default" namespace="/eventing">
<action name="publish" class="org.apache.struts2.portlet.example.eventing.PublishAction">
<result name="success">/WEB-INF/eventing/index.jsp</result>
</action>
<action name="process" class="org.apache.struts2.portlet.example.eventing.ProcessAction">
<result name="success">/WEB-INF/eventing/process.jsp</result>
<result name="forward" type="redirectAction">
<param name="actionName">process</param>
<param name="namespace">/eventing</param>
</result>
</action>
</package>
</struts>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="help" extends="struts-portlet-default"
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="view" extends="struts-portlet-default"
+6 -5
View File
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<include file="struts-view.xml"/>
<include file="struts-edit.xml"/>
<include file="struts-help.xml"/>
<include file="struts-view.xml"/>
<include file="struts-edit.xml"/>
<include file="struts-help.xml"/>
<include file="struts-eventing.xml"/>
</struts>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator Config 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
"-//Apache Struts//XWork Validator Config 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-config-1.0.dtd">
<validators>
<validator name="required" class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"/>
<validator name="requiredstring" class="com.opensymphony.xwork2.validator.validators.RequiredStringValidator"/>
@@ -0,0 +1,11 @@
<%@ taglib prefix="s" uri="/struts-tags" %>
<h2>Input your name</h2>
<s:actionmessage/>
<s:form action="publish" method="POST">
<s:textfield label="Please enter your name" name="name" value="%{name}"/>
<s:submit value="Submit the form"/>
</s:form>
@@ -0,0 +1,12 @@
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test="%{name != null}">
<h2>Welcome <s:property value="name"/></h2>
</s:if>
<s:else>
<h2>Please insert a Name in the Publish Portlet Form</h2>
</s:else>
<s:actionmessage/>
+150 -67
View File
@@ -1,78 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app
version="1.0"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
id="struts-portlet">
id="struts-portlet"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
>
<portlet id="StrutsPortlet">
<description xml:lang="EN">Struts Test Portlet</description>
<portlet-name>StrutsPortlet</portlet-name>
<display-name xml:lang="EN">Struts Test Portlet</display-name>
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class>
<!-- The view mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>viewNamespace</name>
<value>/view</value>
</init-param>
<!-- The default action to invoke in view mode. -->
<init-param>
<name>defaultViewAction</name>
<value>index</value>
</init-param>
<!-- The edit mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>editNamespace</name>
<value>/edit</value>
</init-param>
<!-- The default action to invoke in edit mode. -->
<init-param>
<name>defaultEditAction</name>
<value>index</value>
</init-param>
<!-- The help mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>helpNamespace</name>
<value>/help</value>
</init-param>
<!-- The default action to invoke in help mode. -->
<init-param>
<name>defaultHelpAction</name>
<value>index</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>My StrutsPortlet portlet</title>
<short-title>SP</short-title>
<keywords>struts,portlet</keywords>
</portlet-info>
</portlet>
<portlet id="StrutsPortlet2">
<description xml:lang="EN">Struts Test Portlet2</description>
<portlet-name>StrutsPortlet2</portlet-name>
<display-name xml:lang="EN">Struts Test Portlet2</display-name>
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class>
<!-- The view mode namespace. Maps to a namespace in the Struts 2 config file. -->
@@ -115,6 +55,7 @@
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
@@ -122,10 +63,152 @@
<supported-locale>en</supported-locale>
<portlet-info>
<title>My StrutsPortlet portlet2</title>
<title>My Struts2 Portlet</title>
<short-title>SP2</short-title>
<keywords>struts,portlet</keywords>
</portlet-info>
</portlet>
<portlet id="StrutsPortlet2">
<description xml:lang="EN">Struts Test Portlet with JSR 286 Dispatcher</description>
<portlet-name>StrutsPortlet2</portlet-name>
<display-name xml:lang="EN">Struts Test Portlet with JSR 286 Dispatcher</display-name>
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr286Dispatcher</portlet-class>
<!-- The view mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>viewNamespace</name>
<value>/view</value>
</init-param>
<!-- The default action to invoke in view mode. -->
<init-param>
<name>defaultViewAction</name>
<value>index</value>
</init-param>
<!-- The edit mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>editNamespace</name>
<value>/edit</value>
</init-param>
<!-- The default action to invoke in edit mode. -->
<init-param>
<name>defaultEditAction</name>
<value>index</value>
</init-param>
<!-- The help mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>helpNamespace</name>
<value>/help</value>
</init-param>
<!-- The default action to invoke in help mode. -->
<init-param>
<name>defaultHelpAction</name>
<value>index</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>My Struts2 Portlet with JSR 286 Dispatcher</title>
<short-title>SP2JSR286</short-title>
<keywords>struts,portlet</keywords>
</portlet-info>
</portlet>
<portlet id="Struts2PublishPortlet">
<description xml:lang="EN">Struts2 Publish Portlet</description>
<portlet-name>Struts2PublishPortlet</portlet-name>
<display-name xml:lang="EN">Struts2 Publish Portlet</display-name>
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr286Dispatcher</portlet-class>
<!-- The view mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>viewNamespace</name>
<value>/eventing</value>
</init-param>
<!-- The default action to invoke in view mode. -->
<init-param>
<name>defaultViewAction</name>
<value>publish</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>Struts2 Publish Portlet</title>
<short-title>S2PUB</short-title>
<keywords>struts,publish,portlet</keywords>
</portlet-info>
<supported-publishing-event xmlns:x="http://org.apache.struts2.portlets/events">
<qname>x:name</qname>
</supported-publishing-event>
</portlet>
<portlet id="Struts2ProcessPortlet">
<description xml:lang="EN">Struts2 Process Portlet</description>
<portlet-name>Struts2ProcessPortlet</portlet-name>
<display-name xml:lang="EN">Struts2 Process Portlet</display-name>
<portlet-class>org.apache.struts2.portlet.dispatcher.Jsr286Dispatcher</portlet-class>
<!-- The view mode namespace. Maps to a namespace in the Struts 2 config file. -->
<init-param>
<name>viewNamespace</name>
<value>/eventing</value>
</init-param>
<!-- The default action to invoke in view mode. -->
<init-param>
<name>defaultViewAction</name>
<value>process</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>Struts2 Process Portlet</title>
<short-title>S2PRO</short-title>
<keywords>struts,process,portlet</keywords>
</portlet-info>
<supported-processing-event xmlns:x="http://org.apache.struts2.portlets/events">
<qname>x:name</qname>
</supported-processing-event>
</portlet>
<event-definition>
<qname xmlns:x="http://org.apache.struts2.portlets/events">x:name</qname>
<value-type>java.lang.String</value-type>
</event-definition>
</portlet-app>
@@ -1,3 +1,3 @@
<b>Hello from FreeMarker, ${firstName} ${lastName}!</b>
<b>Hello from FreeMarker, ${firstName?html} ${lastName?html}!</b>
<p/>
<a href="<@s.url action="index"/>">Back to front page</a>
+3 -6
View File
@@ -8,11 +8,8 @@
/WEB-INF/applicationContext*.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Uncomment to use the dispatcher servlet -->
<!--<servlet id="Struts2PortletDispatcherServlet">
<servlet-name>Struts2PortletDispatcherServlet</servlet-name>
<servlet-class>org.apache.struts2.portlet.dispatcher.DispatcherServlet</servlet-class>
</servlet>-->
</web-app>
+2 -2
View File
@@ -26,13 +26,13 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-rest-showcase</artifactId>
<packaging>war</packaging>
<version>2.2.2</version>
<version>2.3.2</version>
<name>Struts 2 Rest Showcase Example</name>
<description>Struts 2 Rest Showcase Example</description>
@@ -23,8 +23,8 @@
-->
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<!-- Overwrite Convention -->
@@ -20,8 +20,8 @@
<s:iterator value="model">
<tr>
<td>${id}</td>
<td>${clientName}</td>
<td>${amount}</td>
<td><s:property value="clientName"/></td>
<td><s:property value="amount"/></td>
<td><a href="orders/${id}">View</a> |
<a href="orders/${id}/edit">Edit</a> |
<a href="orders/${id}/deleteConfirm">Delete</a></td>
@@ -1,7 +1,9 @@
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib prefix="s" uri="/struts-tags" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Order ${id}</title>
@@ -14,11 +16,11 @@
</tr>
<tr>
<th>Client</th>
<td>${clientName}</td>
<td><s:property value="clientName"/></td>
</tr>
<tr>
<th>Amount</th>
<td>${amount}</td>
<td><s:property value="amount"/></td>
</tr>
</table>
<a href="../orders">Back to Orders</a>
+11 -5
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.2.2</version>
<version>2.3.2</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-showcase</artifactId>
@@ -34,9 +34,9 @@
<name>Showcase Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/showcase</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_2_2/apps/showcase</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_2_2/apps/showcase</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/showcase</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_3_2/apps/showcase</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/STRUTS_2_3_2/apps/showcase</url>
</scm>
@@ -95,6 +95,12 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-json-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
@@ -103,7 +109,7 @@
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-codebehind-plugin</artifactId>
<artifactId>struts2-convention-plugin</artifactId>
<version>${project.version}</version>
</dependency>
@@ -20,6 +20,11 @@
*/
package org.apache.struts2.showcase;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Validateable;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
@@ -28,12 +33,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Validateable;
import com.opensymphony.xwork2.util.ValueStack;
/**
*/
public class UITagExample extends ActionSupport implements Validateable {
@@ -47,6 +46,7 @@ public class UITagExample extends ActionSupport implements Validateable {
String bio;
String favouriteColor;
List friends;
String bestFriend;
boolean legalAge;
String state;
String region;
@@ -185,6 +185,14 @@ public class UITagExample extends ActionSupport implements Validateable {
this.friends = friends;
}
public String getBestFriend() {
return bestFriend;
}
public void setBestFriend(String bestFriend) {
this.bestFriend = bestFriend;
}
public boolean isLegalAge() {
return legalAge;
}
@@ -24,17 +24,20 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.struts2.config.Result;
import org.apache.struts2.config.Results;
import org.apache.struts2.dispatcher.ServletRedirectResult;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Results;
/**
* <code>EditPerson</code>
*
*/
@Result(name="list", value="listPeople.action", type=ServletRedirectResult.class)
@Results({
@Result(name="list", location="list-people.action", type="redirect"),
@Result(name="input", location="new-person.ftl", type="freemarker")
})
public class EditPersonAction extends ActionSupport {
private static final long serialVersionUID = 7699491775215130850L;
@@ -23,11 +23,11 @@ package org.apache.struts2.showcase.person;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.config.Result;
import org.apache.struts2.views.freemarker.FreemarkerResult;
import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
@Result(location="list-people.ftl", type="freemarker")
public class ListPeopleAction extends ActionSupport {
private static final long serialVersionUID = 3608017189783645371L;
@@ -20,16 +20,13 @@
*/
package org.apache.struts2.showcase.person;
import org.apache.struts2.config.ParentPackage;
import org.apache.struts2.config.Result;
import org.apache.struts2.config.Results;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.views.freemarker.FreemarkerResult;
import com.opensymphony.xwork2.ActionSupport;
/**
*/
@ParentPackage("person")
@Result(name="input", location="new-person.ftl", type="freemarker")
public class NewPersonAction extends ActionSupport {
private static final long serialVersionUID = 200410824352645515L;
@@ -0,0 +1,7 @@
@ParentPackage("person")
@Namespace("/person")
package org.apache.struts2.showcase.person;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
@@ -59,7 +59,7 @@ public class ViewSourceAction extends ActionSupport implements ServletContextAwa
public String execute() throws MalformedURLException, IOException {
if (page != null && page.trim().length() > 0) {
if (page != null) {
InputStream in = ClassLoaderUtil.getResourceAsStream(page.substring(page.indexOf("//")+1), getClass());
page = page.replace("//", "/");
@@ -78,7 +78,7 @@ public class ViewSourceAction extends ActionSupport implements ServletContextAwa
}
}
if (className != null && className.trim().length() > 0) {
if (className != null) {
className = "/"+className.replace('.', '/') + ".java";
InputStream in = getClass().getResourceAsStream(className);
if (in == null) {
@@ -93,7 +93,7 @@ public class ViewSourceAction extends ActionSupport implements ServletContextAwa
String rootPath = ServletActionContext.getServletContext().getRealPath("/");
if (config != null && config.trim().length() > 0 && (rootPath == null || config.startsWith(rootPath))) {
if (config != null && (rootPath == null || config.startsWith(rootPath))) {
int pos = config.lastIndexOf(':');
configLine = Integer.parseInt(config.substring(pos+1));
config = config.substring(0, pos).replace("//", "/");
@@ -107,21 +107,27 @@ public class ViewSourceAction extends ActionSupport implements ServletContextAwa
* @param className the className to set
*/
public void setClassName(String className) {
this.className = className;
if (className != null && className.trim().length()>0) {
this.className = className;
}
}
/**
* @param config the config to set
*/
public void setConfig(String config) {
this.config = config;
if (config != null && config.trim().length()>0) {
this.config = config;
}
}
/**
* @param page the page to set
*/
public void setPage(String page) {
this.page = page;
if (page != null && page.trim().length()>0) {
this.page = page;
}
}
/**
@@ -1,6 +1,6 @@
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="description1">
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.dtd">
<validators>
<!-- Field-Validator Syntax -->
<field name="currentEmployee.empId">
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.dtd">
<validators>
<!-- Field-Validator Syntax -->
<field name="currentSkill.name">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="name">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="name">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="name">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="message">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="upload">
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.dtd">
<validators>
<field name="person">
<field-validator type="visitor">
@@ -1,4 +1,4 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.dtd">
<validators>
<field name="name">
<field-validator type="requiredstring">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0.2//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="value">
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<!-- START SNIPPET: fieldValidatorsExample -->
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<!-- START SNIPPET: fieldValidatorsExample -->
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<!-- START SNIPPET: nonFieldValidatorsExample -->
@@ -1,9 +1,9 @@
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<!-- START SNIPPET: quizValidators -->
<!--
Add the following DOCTYPE declaration as first line of your XXX-validation.xml file:
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
-->
<validators>
<field name="name">
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="name">
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<validators>
<field name="name">
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
"-//Apache Struts//XWork Validator 1.0//EN"
"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
<!-- START SNIPPET: visitorValidatorsExample -->
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="actionchaining" extends="struts-default" namespace="/actionchaining">
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="ajax" extends="struts-default">
@@ -54,7 +55,7 @@
</action>
</package>
<package name="ajaxNoDecorate" namespace="/nodecorate" extends="struts-default">
<package name="ajaxNoDecorate" namespace="/nodecorate" extends="json-default">
<!-- example 4 -->
<action name="panel1" class="org.apache.struts2.showcase.ajax.Example4ShowPanelAction" method="panel1">
<result type="freemarker">/ajax/tabbedpanel/nodecorate/panel1.ftl</result>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="chat" extends="struts-default" namespace="/chat">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="conversion" namespace="/conversion" extends="struts-default">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="filedownload" extends="struts-default" namespace="/filedownload">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="fileupload" extends="struts-default" namespace="/fileupload">
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="freemarker" namespace="/freemarker" extends="struts-default">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="hangman" extends="struts-default" namespace="/hangman">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="integration" extends="struts1-default" namespace="/integration">
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="ognl" namespace="/nodecorate" extends="struts-default">
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="jsf" extends="jsf-default" namespace="/jsf">
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="modelDriven" extends="struts-default" namespace="/modelDriven">
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<!-- START SNIPPET: xworkSample -->
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="ui-tags" extends="struts-default" namespace="/tags/ui">
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<include file="struts-tags-ui.xml"/>
<include file="struts-tags-non-ui.xml" />
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="tiles" extends="tiles-default" namespace="/tiles">
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="token" extends="struts-default" namespace="/token">
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="validation" extends="struts-default" namespace="/validation">
<package name="validation" extends="json-default" namespace="/validation">
<action name="quizBasic" class="org.apache.struts2.showcase.validation.QuizAction">
<result name="input">quiz-basic.jsp</result>
<result>quiz-success.jsp</result>
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="wait" extends="struts-default" namespace="/wait">
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="xslt" extends="struts-default" namespace="/xslt">
+5 -5
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<!-- START SNIPPET: xworkSample -->
<struts>
@@ -14,13 +14,13 @@
<constant name="struts.custom.i18n.resources" value="globalMessages" />
<constant name="struts.action.extension" value="action,," />
<constant name="struts.codebehind.defaultPackage" value="person" />
<constant name="struts.convention.package.locators.basePackage" value="org.apache.struts2.showcase.person" />
<constant name="struts.convention.result.path" value="/" />
<constant name="struts.freemarker.manager.classname" value="customFreemarkerManager" />
<constant name="struts.serve.static" value="true" />
<constant name="struts.serve.static.browserCache" value="false" />
<constant name="actionPackages" value="org.apache.struts2.showcase.person"/>
<include file="struts-chat.xml" />
<include file="struts-interactive.xml" />
@@ -9,10 +9,6 @@
<filter>
<filter-name>struts-prepare</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>org.apache.struts2.showcase.person</param-value>
</init-param>
</filter>
<filter>
@@ -1,5 +1,5 @@
[
<#list options as option>
["${option}"],
["${option?html}"],
</#list>
]
@@ -1,3 +1,3 @@
Hello, <br/>
Today is ${todayDate}, the time now is ${todayTime}
Today is ${todayDate?html}, the time now is ${todayTime?html}
@@ -1,2 +1,2 @@
Hello, ${name}
Hello, ${name?html}
@@ -1,2 +1,2 @@
So, you are a ${gender}
So, you are a ${gender?html}
@@ -118,7 +118,7 @@
<div class="center">
<div class="box">
<h3>Messages Posted In Room [${roomName?default('')}]</h3>
<h3>Messages Posted In Room [${roomName?default('')?html}]</h3>
<@s.url id="url" value="/chat/ajax/messagesAvailableInRoom.action" includeContext="true">
<@s.param name="roomName" value="%{roomName}" />
</@s.url>
@@ -143,7 +143,7 @@
<div class="right">
<div class="box">
<h3>Users Available In Room [${roomName?default('')}]</h3>
<h3>Users Available In Room [${roomName?default('')?html}]</h3>
<@s.url id="url" value="/chat/ajax/usersAvailableInRoom.action" includeContext="true">
<@s.param name="roomName" value="%{roomName}" />
</@s.url>
@@ -1,6 +1,6 @@
<ul>
<#list availableUsers as user>
<li>${user.name}</li>
<li>${user.name?html}</li>
</#list>
</ul>
@@ -6,7 +6,7 @@
<body>
<#list actionMessages as msg>
${msg}
${msg?html}
</#list>
<@s.form action="guess" method="post">
@@ -6,7 +6,7 @@
</head>
<body>
<s:form action="editPerson" theme="simple" validate="false">
<s:form action="edit-person" theme="simple" validate="false">
<table>
<tr>
@@ -33,8 +33,10 @@
</s:form>
<ul>
<li><a href="newPerson!input.action">Create</a> a new person</li>
<li><a href="listPeople.action">List</a> all people</li>
<s:url id="newpersonurl" action="new-person" method="input" />
<li><s:a href="%{newpersonurl}">Create</s:a> a new person</li>
<s:url id="listpeopleurl" action="list-people" />
<li><s:a href="%{listpeopleurl}">List</s:a> all people</li>
</ul>
</body>
@@ -1,3 +1,5 @@
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Acme Corp</title>
@@ -5,8 +7,10 @@
<body>
<ul>
<li><a href="newPerson!input.action">Create</a> a new person</li>
<li><a href="listPeople.action">List</a> all people</li>
<s:url id="newpersonurl" action="new-person" method="input" />
<li><s:a href="%{newpersonurl}">Create</s:a> a new person</li>
<s:url id="listpeopleurl" action="list-people" />
<li><s:a href="%{listpeopleurl}">List</s:a> all people</li>
</ul>
</body>
</html>
@@ -0,0 +1,30 @@
<html>
<head>
<title>All People</title>
</head>
<body>
There are ${peopleCount} people...
<table>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
<#list people as person>
<tr>
<td>${person.id?html}</td>
<td>${person.name?html}</td>
<td>${person.lastName?html}</td>
</tr>
</#list>
</table>
<ul>
<@s.url id="editpersonurl" action="edit-person" />
<li><@s.a href="%{editpersonurl}">Edit people</@s.a></li>
<@s.url id="newpersonurl" action="new-person" method="input" />
<li><@s.a href="%{newpersonurl}">Create</@s.a> a new person</li>
</ul>
</body>
</html>
@@ -1,28 +0,0 @@
<html>
<head>
<title>All People</title>
</head>
<body>
There are ${peopleCount} people...
<table>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
<#list people as person>
<tr>
<td>${person.id}</td>
<td>${person.name}</td>
<td>${person.lastName}</td>
</tr>
</#list>
</table>
<ul>
<li><a href="editPerson.action">Edit people</a></li>
<li><a href="newPerson!input.action">Create</a> a new person</li>
</ul>
</body>
</html>
@@ -0,0 +1,21 @@
<html>
<head>
<title>New Person</title>
</head>
<body>
<@s.form action="new-person">
<@s.textfield label="First Name" name="person.name"/>
<@s.textfield label="Last Name" name="person.lastName"/>
<@s.submit value="Create person"/>
</@s.form>
<ul>
<@s.url id="editpersonurl" action="edit-person" />
<li><@s.a href="%{editpersonurl}">Edit people</@s.a></li>
<@s.url id="listpeopleurl" action="list-people" />
<li><@s.a href="%{listpeopleurl}">List</@s.a> all people</li>
</ul>
</body>
</html>
@@ -1,19 +0,0 @@
<html>
<head>
<title>New Person</title>
</head>
<body>
<@s.form action="newPerson">
<@s.textfield label="First Name" name="person.name"/>
<@s.textfield label="Last Name" name="person.lastName"/>
<@s.submit value="Create person"/>
</@s.form>
<ul>
<li><a href="editPerson.action">Edit people</a></li>
<li><a href="listPeople.action">List</a> all people</li>
</ul>
</body>
</html>
@@ -8,7 +8,7 @@
You have come to this page because you used an 'action' prefix.<p/>
The text you've enter is ${text?default('')}<p/>
The text you've entered is ${text?default('')?html}<p/>
<@s.url id="url" action="actionPrefixExampleUsingFreemarker" namespace="/tags/non-ui/actionPrefix" />
<@s.a href="%{#url}">Back</@s.a>
@@ -8,7 +8,7 @@
You have come to this page because you used an 'method' prefix.<p/>
The text you've enter is ${text?default('')}<p/>
The text you've enter is ${text?default('')?html}<p/>
<@s.url id="url" action="actionPrefixExampleUsingFreemarker" namespace="/tags/non-ui/actionPrefix" />
<@s.a href="%{#url}">Back</@s.a>
@@ -11,7 +11,7 @@
Because this is a 'redirect-action', the text will be lost, due to a redirection
implies a new request being issued from the client.<p/>
The text you've enter is ${text?default('')}<p/>
The text you've enter is ${text?default('')?html}<p/>
<@s.url id="url" action="actionPrefixExampleUsingFreemarker" namespace="/tags/non-ui/actionPrefix" />
<@s.a href="%{#url}">Back</@s.a>

Some files were not shown because too many files have changed in this diff Show More