This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new f470f94 Updates production by Jenkins
f470f94 is described below
commit f470f94e4f47d44662dc47a3087e8d181ac6e54c
Author: jenkins <[email protected]>
AuthorDate: Sun Feb 17 18:31:00 2019 +0000
Updates production by Jenkins
---
content/tag-developers/include-tag.html | 88 ++++++++++-----------------------
1 file changed, 27 insertions(+), 61 deletions(-)
diff --git a/content/tag-developers/include-tag.html
b/content/tag-developers/include-tag.html
index 87b8216..8f143c7 100644
--- a/content/tag-developers/include-tag.html
+++ b/content/tag-developers/include-tag.html
@@ -131,41 +131,23 @@
<p>Please make sure you have read the <a href="tag-syntax.html">Tag Syntax</a>
document and understand how tag attribute syntax works.</p>
-<table>
- <tbody>
- <tr>
- </tr>
- </tbody>
-</table>
-
<p><strong>Description</strong></p>
-<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
+<p>Include a servlet’s output (result of servlet or a JSP page).</p>
+
+<p><strong>Note:</strong> Any additional params supplied to the included page
are <strong>not</strong>
+ 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.
-
-
-
-**(!) How To access parameters**
-
+ a scriptlet.</p>
->
+<p><strong>How To access parameters</strong></p>
->
+<p>Parameters are passed as request parameters, so use the <code
class="highlighter-rouge">${param.ParamName}</code> notation to access them. Do
not use the <strong>property</strong> tag to access parameters in included
files.</p>
-> 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.
+<p><strong>Parameters</strong></p>
->
-
-__Parameters__
-
-
-
-
-<p> <table width="100%">
+<table width="100%">
<tr>
@@ -211,49 +193,33 @@ __Parameters__
</tr>
- </table>
-
-</p>
-
-
-__Example__
-
-
-
-
-
-```java
- <-- One: -->
- <s:include value="myJsp.jsp" />
-
- <-- Two: -->
- <s:include value="myJsp.jsp">
- <s:param name="param1" value="value2" />
- <s:param name="param2" value="value2" />
- </s:include>
-
- <-- Three: -->
- <s:include value="myJsp.jsp">
- <s:param name="param1">value1</s:param>
- <s:param name="param2">value2</s:param>
- </s:include>
-
-```
-
+</table>
+<p><strong>Example</strong></p>
+<div class="highlighter-rouge"><pre class="highlight"><code> <span
class="c"><!-- One: --></span>
+ <span class="nt"><s:include</span> <span class="na">value=</span><span
class="s">"myJsp.jsp"</span> <span class="nt">/></span>
+ <span class="c"><!-- Two: --></span>
+ <span class="nt"><s:include</span> <span class="na">value=</span><span
class="s">"myJsp.jsp"</span><span class="nt">></span>
+ <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"param1"</span> <span class="na">value=</span><span
class="s">"value2"</span> <span class="nt">/></span>
+ <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"param2"</span> <span class="na">value=</span><span
class="s">"value2"</span> <span class="nt">/></span>
+ <span class="nt"></s:include></span>
+ <span class="c"><!-- Three: --></span>
+ <span class="nt"><s:include</span> <span class="na">value=</span><span
class="s">"myJsp.jsp"</span><span class="nt">></span>
+ <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"param1"</span><span class="nt">></span>value1<span
class="nt"></s:param></span>
+ <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"param2"</span><span class="nt">></span>value2<span
class="nt"></s:param></span>
+ <span class="nt"></s:include></span>
+</code></pre>
+</div>
-```none
- Example one - do an include myJsp.jsp page
+<pre><code class="language-none"> Example one - do an include myJsp.jsp page
Example two - do an include to myJsp.jsp page with parameters param1=value1
and param2=value2
Example three - do an include to myJsp.jsp page with parameters param1=value1
and param2=value2
-```
-
+</code></pre>
-</s:property...></p></p>
</section>
</article>