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 <bui...@apache.org>
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 &lt;s:property…&gt; 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>
 
-&gt; 
+<p><strong>How To access parameters</strong></p>
 
-&gt; 
+<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>
 
-&gt; 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>
 
-&gt; 
-
-__Parameters__
-
-
-
-
-<p>            <table width="100%">
+<table width="100%">
 
                        <tr>
 
@@ -211,49 +193,33 @@ __Parameters__
 
                                </tr>
 
-               </table>
-
-</p>
-
-
-__Example__
-
-
-
-
-
-```java
- &lt;-- One: --&gt;
- <s:include value="myJsp.jsp" />
-
- &lt;-- Two: --&gt;
- <s:include value="myJsp.jsp">
-    <s:param name="param1" value="value2" />
-    <s:param name="param2" value="value2" />
- </s:include>
-
- &lt;-- Three: --&gt;
- <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">&lt;!-- One: --&gt;</span>
+ <span class="nt">&lt;s:include</span> <span class="na">value=</span><span 
class="s">"myJsp.jsp"</span> <span class="nt">/&gt;</span>
 
+ <span class="c">&lt;!-- Two: --&gt;</span>
+ <span class="nt">&lt;s:include</span> <span class="na">value=</span><span 
class="s">"myJsp.jsp"</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;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">/&gt;</span>
+    <span class="nt">&lt;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">/&gt;</span>
+ <span class="nt">&lt;/s:include&gt;</span>
 
+ <span class="c">&lt;!-- Three: --&gt;</span>
+ <span class="nt">&lt;s:include</span> <span class="na">value=</span><span 
class="s">"myJsp.jsp"</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;s:param</span> <span class="na">name=</span><span 
class="s">"param1"</span><span class="nt">&gt;</span>value1<span 
class="nt">&lt;/s:param&gt;</span>
+    <span class="nt">&lt;s:param</span> <span class="na">name=</span><span 
class="s">"param2"</span><span class="nt">&gt;</span>value2<span 
class="nt">&lt;/s:param&gt;</span>
+ <span class="nt">&lt;/s:include&gt;</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>

Reply via email to