# Changes for page Scripting

<
From version
edited by Vincent Massol
on 2011/12/01
To version
edited by Eduard Moraru
on 2012/03/14
>
Change comment: Mentioned the availability of the \$stringtool in velocity since 3.4M1.

## Details

Page properties
Author
 ... ... @@ -1,1 +1,1 @@ 1 -XWiki.VincentMassol 1 +XWiki.enygma
Content
 ... ... @@ -31,7 +31,9 @@ 31 31 32 32 You can also gain direct access to XWiki components using the following code snippet (also see: [[Accessing components from Groovy>>DevGuide.WritingComponents#HAccessingacomponentfromgroovy]]): 33 33 34 -{{info}}This snippet is written in Groovy and will have to be converted to your scripting language.{{/info}} 34 +{{info}} 35 +This snippet is written in Groovy and will have to be converted to your scripting language. 36 +{{/info}} 35 35 36 36 {{code language="java"}} 37 37 {{groovy}} ... ... @@ -87,6 +87,7 @@ 87 87 * [[Escape Tool>>http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html]]: **##\$escapetool##** 88 88 * [[Sort Tool>>http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html]]: **##\$sorttool##** 89 89 * Message Tool: **##\$msg##** This tool is used to provide internationalized messages based on keys. For more details see the [[How to Write Internationalized Applications tutorial>>DevGuide.InternationalizingApplications]]. 92 +* [[String Tool>>http://commons.apache.org/lang/api/org/apache/commons/lang3/StringUtils.html]]: **##\$stringtool##** (since 3.4M1) 90 90 91 91 {{info}} 92 92 If you wish to add new Velocity tools you'll need to edit your ##xwiki.properties## file and follow the instructions in there. ... ... @@ -162,7 +162,9 @@ 162 162 163 163 = Groovy Specific Information = 164 164 165 -{{info}}Currently all non Velocity scripting languages are only allowed users having Programming Rights.{{/info}} 168 +{{info}} 169 +Currently all non Velocity scripting languages are only allowed users having Programming Rights. 170 +{{/info}} 166 166 167 167 * See Groovy snippets in the [[Extensions wiki>>extensions:Main.WebHome]] (click on the "Groovy" tag in the Tag Cloud) 168 168 * [[Groovy web site>>http://groovy.codehaus.org/]]