This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/master by this push: new 756a1a2 Updates expression syntax 756a1a2 is described below commit 756a1a204df652e57341d05d3ec40a6774cf8562 Author: Lukasz Lenart <lukasz.len...@gmail.com> AuthorDate: Thu Oct 12 09:00:44 2017 +0200 Updates expression syntax --- source/tag-developers/freemarker-tags.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tag-developers/freemarker-tags.md b/source/tag-developers/freemarker-tags.md index 8a503a7..d8d2be5 100644 --- a/source/tag-developers/freemarker-tags.md +++ b/source/tag-developers/freemarker-tags.md @@ -67,7 +67,7 @@ In FreeMarker, we can pass the arbitrary parameter directly and create the URL i **Creating a URL with a query string (FTL)** ```html -<@s.url value="somePage" personId="${personId}"/> +<@s.url value="somePage" personId="%{personId}"/> ``` ### Using inline attributes with templates @@ -98,7 +98,7 @@ to a different type, such as List, int, or boolean. This generally works just fi FreeMarker which provides more advanced ways to apply attributes. Suppose the following example: ```html -<@s.select label="Foo label - ${foo}" name="${name}" list="%{{1, 2, 3}}"/> +<@s.select label="Foo label - %{foo}" name="%{name}" list="%{{1, 2, 3}}"/> ``` What will happen here is that each attribute will be evaluated to a String as best it can. This may involve calling the @@ -109,7 +109,7 @@ advanced collection support. But suppose you wish to use FreeMarker's list or hash support instead? You can do this: ```html -<@s.select label="Foo label - ${foo}" name="${name}" list=[1, 2, 3]/> +<@s.select label="Foo label - %{foo}" name="%{name}" list=[1, 2, 3]/> ``` Notice that the list attribute no longer has quotes around it. Now it will come in to the tag as an object that can't -- To stop receiving notification emails like this one, please contact ['"commits@struts.apache.org" <commits@struts.apache.org>'].