<f>
For formatting output
Output the tag content with the specified format.
partten(required) Format a string using the specified format string and arguments Reference Java method String.format(String fmt, Object... args)
values(optional) The specified parameters, multiple parameters can be filled, each with "," separated
valueScope(optional) The scope of the variable property context:Get variable from context(default) session:Get variable from session
There are 2 formats for this label 1.<f parrten="" values=""/> e.g. <f var="s" set value="'Hello Jmr!'"/> <f partten="Demo: %s" values="s"/> -->Demo: Hello Jmr! 2.<f parrten=""></f> e.g. <f var="s" set value="'Hello Jmr!'"/> <f partten="Demo: %s"><get value="s"/></f> -->Demo: Hello Jmr!
Please refer:String.format(String fmt, Object... args) String fmt --> parrten = "" Object... args --> values = "" %[index$][flags]*[width][.precision]conversion
Example 1
Example 2
Please open the generated file outside the eclipse, eclipse due to the font size problem, the display content may not be aligned.