TextFormatter Class - Documentation topics on: deprecated,messagetool,textformatter,textkey,velocity,velocity tools,.

TextFormatter Class
Deprecated

org.apache.velocity.tools.struts
Class MessageTool.TextKey

java.lang.Object
org.apache.velocity.tools.struts.MessageTool.TextKey
Enclosing class:
MessageTool

public class MessageTool.TextKey extends java.lang.Object

Helper class to simplify tool usage when retrieving no-arg messages from the default bundle that have periods in their key.

So instead of $text.get("forms.profile.title"),1 you can just type $text.forms.profile.title. Also, this lets you do things like:

  #if($text.forms.profile.exists )
#set($profiletext = $text.forms.profile )
<h1>$profiletext.title</h1>
<h3>$profiletext.subtitle</h3>
#end
Since:
VelocityTools 1.2

For complete documentation on this viewtool use the following link: textFormatter