You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ya...@apache.org on 2019/02/17 18:18:54 UTC
[struts-site] branch master updated: cleanup include tag
This is an automated email from the ASF dual-hosted git repository.
yasserzamani 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 3e1261d cleanup include tag
3e1261d is described below
commit 3e1261d433873ecec440687ab1d2c9ea7996d21e
Author: Yasser Zamani <ya...@apache.org>
AuthorDate: Sun Feb 17 21:48:34 2019 +0330
cleanup include tag
---
source/tag-developers/include-tag.md | 45 ++++++++++--------------------------
1 file changed, 12 insertions(+), 33 deletions(-)
diff --git a/source/tag-developers/include-tag.md b/source/tag-developers/include-tag.md
index a5462b6..1587c58 100644
--- a/source/tag-developers/include-tag.md
+++ b/source/tag-developers/include-tag.md
@@ -5,42 +5,26 @@ title: Tag Developers Guide
# include
-
Please make sure you have read the [Tag Syntax](tag-syntax.html) document and understand how tag attribute syntax works.
-|
-
__Description__
+Include a servlet's output (result of servlet or a JSP page).
-
-{% comment %}start snippet id=javadoc|javadoc=true|url=org.apache.struts2.components.Include {% endcomment %}
-<p> <p>Include a servlet's output (result of servlet or a JSP page).</p>
- <p>Note: Any additional params supplied to the included page are <b>not</b>
- accessible within the rendered page through the <s:property...> tag
+**Note:** Any additional params supplied to the included page are **not**
+ accessible within the rendered page through the \<s:property...\> tag
since no valuestack will be created. You can, however, access them in a
servlet via the HttpServletRequest object or from a JSP page via
- a scriptlet.</p>
-</p>
-{% comment %}end snippet id=javadoc|javadoc=true|url=org.apache.struts2.components.Include {% endcomment %}
-
-**(!) How To access parameters**
-
-
->
-
->
+ a scriptlet.
-> Parameters are passed as request parameters, so use the \${param.ParamName} notation to access them. Do not use the **property** tag to access parameters in included files.
+**How To access parameters**
->
+Parameters are passed as request parameters, so use the `${param.ParamName}` notation to access them. Do not use the **property** tag to access parameters in included files.
__Parameters__
-
-
{% comment %}start snippet id=tagattributes|javadoc=false|url=struts2-tags/include.html {% endcomment %}
-<p> <table width="100%">
+<table width="100%">
<tr>
@@ -86,33 +70,28 @@ __Parameters__
</tr>
- </table>
-
-</p>
+</table>
{% comment %}end snippet id=tagattributes|javadoc=false|url=struts2-tags/include.html {% endcomment %}
__Example__
-
-
{% comment %}start snippet id=example|lang=java|javadoc=true|url=org.apache.struts2.components.Include {% endcomment %}
-```java
- <-- One: -->
+```xml
+ <!-- One: -->
<s:include value="myJsp.jsp" />
- <-- Two: -->
+ <!-- Two: -->
<s:include value="myJsp.jsp">
<s:param name="param1" value="value2" />
<s:param name="param2" value="value2" />
</s:include>
- <-- Three: -->
+ <!-- Three: -->
<s:include value="myJsp.jsp">
<s:param name="param1">value1</s:param>
<s:param name="param2">value2</s:param>
</s:include>
-
```
{% comment %}end snippet id=example|lang=java|javadoc=true|url=org.apache.struts2.components.Include {% endcomment %}