Name
fn:split
Synopsis
This function creates and returns an array where the elements are the parts of a string that are separated by a separator. The separators are not included in the result.
Syntax
String[]: fn:split(string
,separator
)
Parameters
Parameter name |
Java type |
Description |
string |
String |
The string to split. |
separator |
String |
The string that separates the parts of the source string. |
Example
<c:forEach items="${fn:split(csvString, ',')}
">
...
</c:forEach>
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.