I would like to pass an array as a parameter in a jsp:include
. Code below does not work:
<jsp:include page="header.jsp">
<jsp:param name="stylesheets" value="login.css" />
<jsp:param name="stylesheets" value="login2.css" />
</jsp:include>
What is the right way to do this, so that ${param.stylesheets} = "login.css, login2.css"
?
You need to access it by ${paramValues.stylesheets}
instead. It returns a String[]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With