struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [struts-site] branch asf-site updated: Updates production by Jenkins
Date Mon, 30 Oct 2017 07:43:33 GMT
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 50a7de3  Updates production by Jenkins
50a7de3 is described below

commit 50a7de32517de8b6b9e8806bc17485318ea4b7cc
Author: jenkins <builds@apache.org>
AuthorDate: Mon Oct 30 07:43:31 2017 +0000

    Updates production by Jenkins
---
 content/tag-developers/ognl.html | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/content/tag-developers/ognl.html b/content/tag-developers/ognl.html
index d7f6c55..35c93c4 100644
--- a/content/tag-developers/ognl.html
+++ b/content/tag-developers/ognl.html
@@ -177,7 +177,7 @@ we must use the <code class="highlighter-rouge">#</code> notation
so OGNL knows
 </code></pre>
 
 <p>The ActionContext is also exposed to Action classes via a static method but you
<strong>should not</strong> use this approach. 
-Safer is to use one of the <code class="highlighter-rouge">*Aware</code> interafces.</p>
+Safer is to use one of the <code class="highlighter-rouge">*Aware</code> interfaces.</p>
 
 <div class="highlighter-rouge"><pre class="highlight"><code><span class="n">ActionContext</span><span
class="o">.</span><span class="na">getContext</span><span class="o">().</span><span
class="na">getSession</span><span class="o">().</span><span class="na">put</span><span
class="o">(</span><span class="s">"mySessionPropKey"</span><span class="o">,</span>
<span class="n">mySessionObject</span><span class="o">);</span>
 </code></pre>
@@ -243,10 +243,19 @@ selects “name2” as the default value.</p>
 <p>OGNL supports basic lamba expression syntax enabling you to write simple functions.
 (Dedicated to all you math majors who didn’t think you would ever see this one again.)</p>
 
-<p>Fibonacci: if n==0 return 0; elseif n==1 return 1; else return fib(n-2)+fib(n-1);
- fib(0) = 0
+<p>Fibonacci: 
+```
+if n == 0 
+   return 0;
+ elseif n == 1
+   return 1;
+ else
+   return fib(n-2) + fib(n-1);</p>
+
+<p>fib(0) = 0
  fib(1) = 1
- fib(11) = 89</p>
+ fib(11) = 89
+ ```</p>
 
 <p><strong>How the expression works</strong></p>
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@struts.apache.org" <commits@struts.apache.org>'].

Mime
View raw message