Selasa, 27 Juli 2021

How to Split String in JSP? JSTL forTokens Tag Example

JSTL forTokens tag is another tag in core JSTL library to support Iteration or looping. It effectively compliments, more useful <c:forEach> tag, by allowing you to iterate over comma-separated or any delimited String. You can use this tag to split string in JSP and can operate on them individually. forTokens tag has similar attributes like forEach JSTL tag except one more attribute called delims, which specifies delimiter. For example to iterate over colon-separated String "abc:cde:fgh:ijk", delims=":". 

Lorem ipsum is simply dummy text of the printing and typesetting industry.

Comments


EmoticonEmoticon