This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch feature/include-tag-params in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/feature/include-tag-params by this push: new 47cf53e50 Fixes wrong access example when scope is defined 47cf53e50 is described below commit 47cf53e50f9a60a8cfcb46a6e712fc9b29fe3c78 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Sun Oct 29 14:13:10 2023 +0100 Fixes wrong access example when scope is defined --- source/tag-developers/include-tag.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/tag-developers/include-tag.md b/source/tag-developers/include-tag.md index ff976f553..5f6c54062 100644 --- a/source/tag-developers/include-tag.md +++ b/source/tag-developers/include-tag.md @@ -27,17 +27,16 @@ Below it's an example how you can access parameters passed into the included pag with scope: ``` -<s:set var="paramName" scope="page">${param.paramName}</s:set> -<s:property value="paramName"/> +<s:set var="innerName" scope="page">${param.paramName}</s:set> +<s:property value="#attr.innerName"/> ``` with no scope: ```jsp -<s:set var="paramName">${param.paramName}</s:set> -<s:property value="paramName"/> - -<s:property value="#attr.paramName"/> -<s:property value="#paramName"/> +<s:set var="innerName">${param.paramName}</s:set> +<s:property value="innerName"/> +<s:property value="#attr.innerName"/> +<s:property value="#innerName"/> ``` > **Note**: You can access such params without using JSTL, just use > `${param.paramName}` notation.