Jsp: include an array of options

I would like to pass an array as a parameter to jsp:include . The 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 correct way to do this to ${param.stylesheets} = "login.css, login2.css" ?

+8
java jsp jstl
source share
1 answer

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

+11
source share

All Articles