This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/asf-staging by this push:
new 20e60e9 Updates stage by Jenkins
20e60e9 is described below
commit 20e60e970d4827543cd8918547ebef8e7e59ef21
Author: jenkins <[email protected]>
AuthorDate: Wed Feb 19 08:25:43 2020 +0000
Updates stage by Jenkins
---
content/tag-developers/a-tag.html | 20 ++++++++--------
content/tag-developers/tag-syntax.html | 42 ++++++++++++++++------------------
2 files changed, 30 insertions(+), 32 deletions(-)
diff --git a/content/tag-developers/a-tag.html
b/content/tag-developers/a-tag.html
index 661e3d4..4ff9ab9 100644
--- a/content/tag-developers/a-tag.html
+++ b/content/tag-developers/a-tag.html
@@ -127,7 +127,7 @@
<section class="col-md-12">
<a class="edit-on-gh"
href="https://github.com/apache/struts-site/edit/master/source/tag-developers/a-tag.md"
title="Edit this page on GitHub">Edit on GitHub</a>
- <a href="tag-reference.html" title="back to Tag Developers Guide"><< back
to Tag Developers Guide</a>
+ <a href="tag-reference.html" title="back to Tag Reference"><< back to Tag
Reference</a>
<h1 id="a">a</h1>
@@ -148,18 +148,18 @@ using the <code class="highlighter-rouge">param</code>
tag.</p>
leverage this url into your <code class="highlighter-rouge">s:a</code> tag.
This is done by creating a <code class="highlighter-rouge">s:url</code> and
specifying an <code class="highlighter-rouge">var</code> attribute. Like <code
class="highlighter-rouge">testUrlId</code>
in this example. Then in the <code class="highlighter-rouge">s:a</code> tag
reference this id in the href attribute via <code
class="highlighter-rouge">%{testUrlId}</code></p>
-<div class="language-html highlighter-rouge"><div class="highlight"><pre
class="highlight"><code><span class="nt"><s:url</span> <span
class="na">var=</span><span class="s">"testUrlId"</span> <span
class="na">namespace=</span><span class="s">"/subscriber"</span> <span
class="na">action=</span><span class="s">"customField"</span> <span
class="na">method=</span><span class="s">"delete"</span><span
class="nt">></span>
- <span class="nt"><s:param</span> <span class="na">name=</span><span
class="s">"customFieldDefinition.id"</span> <span class="na">value=</span><span
class="s">"${id}"</span><span class="nt">/></span>
-<span class="nt"></s:url></span>
+<pre><code class="language-jsp"><s:url var="testUrlId"
namespace="/subscriber" action="customField" method="delete">
+ <s:param name="customFieldDefinition.id" value="${id}"/>
+</s:url>
-<span class="nt"><s:a</span> <span class="na">errorText=</span><span
class="s">"Sorry your request had an error."</span> <span
class="na">preInvokeJS=</span><span class="s">"confirm('Are you sure you want
to delete this item?')"</span> <span class="na">href=</span><span
class="s">"%{testUrlId}"</span><span class="nt">></span>
- <span class="nt"><img</span> <span class="na">src=</span><span
class="s">"<s:url value="</span><span class="err">/</span><span
class="na">images</span><span class="err">/</span><span
class="na">delete</span><span class="err">.</span><span
class="na">gif</span><span class="err">"</span><span class="nt">/></span>"
border="none"/>
-<span class="nt"></s:a></span>
+<s:a errorText="Sorry your request had an error." preInvokeJS="confirm('Are
you sure you want to delete this item?')" href="%{testUrlId}">
+ <img src="<s:url value="/images/delete.gif"/>" border="none"/>
+</s:a>
-<span class="nt"><img</span> <span class="na">xsrc=</span><span
class="s">"<s:url value="</span><span class="err">/</span><span
class="na">images</span><span class="err">/</span><span
class="na">delete</span><span class="err">.</span><span
class="na">gif</span><span class="err">"</span><span class="nt">/></span>"
border="none"/>
+<img xsrc="<s:url value="/images/delete.gif"/>" border="none"/>
-<span class="nt"><s:a><img</span> <span class="na">xsrc=</span><span
class="s">"<s:url value="</span><span class="err">/</span><span
class="na">images</span><span class="err">/</span><span
class="na">delete</span><span class="err">.</span><span
class="na">gif</span><span class="err">"</span><span class="nt">/></span>"
border="none"/><span class="nt"></s:a></span>
-</code></pre></div></div>
+<s:a><img xsrc="<s:url value="/images/delete.gif"/>"
border="none"/></s:a>
+</code></pre>
</section>
</article>
diff --git a/content/tag-developers/tag-syntax.html
b/content/tag-developers/tag-syntax.html
index 38b9911..a659006 100644
--- a/content/tag-developers/tag-syntax.html
+++ b/content/tag-developers/tag-syntax.html
@@ -245,28 +245,26 @@ within quotes</p>
<h2 id="expression-language-notations">Expression Language Notations</h2>
-<table>
- <thead>
- <tr>
- <th>Username: <code
class="highlighter-rouge">${user.username}</code></th>
- <th>A JavaBean object in a standard context in Freemarker, Velocity, or
JSTL EL (Not OGNL).</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><s:textfield name="username"></s:textfield></td>
- <td>A username property on the Value Stack.</td>
- </tr>
- <tr>
- <td><s:url id="es" action="Hello"><br /><s:param
name="request_locale">es</s:param><br /></s:url><br /><s:a
href="%{es}">Espanol</s:a>```</td>
- <td>Another way to refer to a property placed on the Value Stack.</td>
- </tr>
- <tr>
- <td><s:property value="#session.user.username"></s:property><br
/><s:select label="FooBar" name="foo" list="#{'username':'trillian',
'username':'zaphod'}"></s:select></td>
- <td>A static Map, as in <code
class="highlighter-rouge">put("username","trillian")</code>.</td>
- </tr>
- </tbody>
-</table>
+<ul>
+ <li>A JavaBean object in a standard context in Freemarker, Velocity, or JSTL
EL (Not OGNL).|
+Username: <code class="highlighter-rouge">${user.username}</code></li>
+ <li>A username property on the Value Stack.
+ <pre><code class="language-jsp"><s:textfield name="username"/>
+</code></pre>
+ </li>
+ <li>Another way to refer to a property placed on the Value Stack.
+ <pre><code class="language-jsp"><s:url id="es" action="Hello">
+ <s:param name="request_locale">es</s:param>
+</s:url>
+<s:a href="%{es}">Espanol</s:a>
+</code></pre>
+ </li>
+ <li>A static Map, as in <code
class="highlighter-rouge">put("username","trillian")</code>.
+ <pre><code class="language-jsp"><s:property
value="#session.user.username" />
+<s:select label="FooBar" name="foo" list="#{'username':'trillian',
'username':'zaphod'}" />
+</code></pre>
+ </li>
+</ul>
<h2 id="disallowed-property-names">Disallowed property names</h2>