jsp:include param array

java, jsp, jstl

Solution

You need to access it by `${paramValues.stylesheets}` instead. It returns a `String[]`.

Problem

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"`?

Original source