简体   繁体   中英

jsp:include param array

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[] .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM