Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jsp:include param array

Tags:

java

jsp

jstl

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

like image 384
user1007895 Avatar asked Oct 22 '12 19:10

user1007895


1 Answers

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

like image 131
BalusC Avatar answered Oct 20 '22 16:10

BalusC