Name
fn:join
Synopsis
This function
creates and returns a string constructed by concatenating array
elements, separated by a separator string. If the array is
null
an empty string is returned.
Syntax
String: fn:join(array
,separator
)
Parameters
Parameter name |
Java type |
Description |
array |
String[] |
The array to process. |
separator |
String |
The string used to separate the elements in the returned value. |
Example
All 'foo' parameter values: ${fn:join(paramValues.foo, ', ')}
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.