%@ page contentType="text/html;charset=Big5" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
Input Array | Separator | Result |
---|---|---|
${s1} | + | ${fn:join(a1, " + ")} |
${s1} | <sep> | ${fn:join(a1, " <sep> ")} |
${s1} | empty string | ${fn:join(a1, "")} |
${s1} | null | ${fn:join(a1, null)} |
null | empty string | ${fn:join(null, "")} |