|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
jp.terasoluna.fw.web.taglib.StringFormatterTagBase
jp.terasoluna.fw.web.taglib.RTrimTag
public class RTrimTag
Implementation class of trim
tag that deletes the white space on both the sides (left and right side)
of string.
Deletes the white space on the left and right side of string by using the trim()
method of
jp.terasoluna.fw.util.StringUtil
class.
Refer to StringFormatterTagBase
.
Refer to StringFormatterTagBase
.
To delete the white space on both the sides of "field001"
property value of "form0001"
bean and output the value,
see the following example.
<t:trim name="form0001"
property="field001" />
In the following example, bean property is set to the "trimmed"
scripting variable and not output to the custom tag.
<t:trim id="trimmed"
name="form0001"
property="field001" />
In the following example, the string to be trimmed from both the sides is
specified in the value
attribute of custom tag and not fetched
from bean.
<t:trim value=" String before trimming the white space on both the sides " />
StringFormatterTagBase
,
Serialized FormField Summary | |
---|---|
private static long |
serialVersionUID
Serial version ID |
protected boolean |
zenkaku
Full-width space trim attribute. |
Fields inherited from class jp.terasoluna.fw.web.taglib.StringFormatterTagBase |
---|
filter, id, ignore, name, property, replaceSpToNbsp, scope, value |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
RTrimTag()
|
Method Summary | |
---|---|
protected java.lang.String |
doFormat(java.lang.String s)
Deletes the white space on right side of specified string. |
boolean |
getZenkaku()
Fetches the full-width space trim attribute. |
void |
setZenkaku(boolean zenkaku)
Sets full-width space trim attribute. |
Methods inherited from class jp.terasoluna.fw.web.taglib.StringFormatterTagBase |
---|
doStartTag, getFilter, getId, getIgnore, getName, getProperty, getReplaceSpToNbsp, getScope, getValue, release, setFilter, setId, setIgnore, setName, setProperty, setReplaceSpToNbsp, setScope, setValue |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected boolean zenkaku
Constructor Detail |
---|
public RTrimTag()
Method Detail |
---|
public boolean getZenkaku()
public void setZenkaku(boolean zenkaku)
zenkaku
- Full-width space trim attributeprotected java.lang.String doFormat(java.lang.String s)
Deletes the white space on the right side of string.
doFormat
in class StringFormatterTagBase
s
- String to be formatted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |