paramValues"
From Documentation
Maya001122 (talk | contribs) (Created page with '== paramValues - java.util.Map == <source lang="xml" > A map of parameters of the request. (String, String[]). </source>') |
m (correct highlight (via JWB)) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZUMLReferencePageHeader}} | |
− | + | ||
− | A map of parameters of the request | + | = paramValues - java.util.Map = |
+ | |||
+ | A map of parameters of the request, <code>Map<String, String[]></code>, returned by [http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getParameterValues(java.lang.String) ServletRequest.getParameterValues()] | ||
+ | |||
+ | To retrieve the first value of a parameter if any, use <code>param</code> instead. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | ${param.something} | ||
+ | ${paramValues.something[1]} | ||
</source> | </source> | ||
+ | |||
+ | Notice that, in zscript, there is no <code>paramValues</code>. <code>Param</code> is a map of possible values, <code>Map<String, String[]></code>. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <zscript> | ||
+ | String[] values = param.get("something"); | ||
+ | </zscript> | ||
+ | </source> | ||
+ | |||
+ | =Version History= | ||
+ | {{LastUpdated}} | ||
+ | {| border='1px' | width="100%" | ||
+ | ! Version !! Date !! Content | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | {{ZUMLReferencePageFooter}} |
Latest revision as of 13:26, 19 January 2022
paramValues - java.util.Map
A map of parameters of the request, Map<String, String[]>
, returned by ServletRequest.getParameterValues()
To retrieve the first value of a parameter if any, use param
instead.
${param.something}
${paramValues.something[1]}
Notice that, in zscript, there is no paramValues
. Param
is a map of possible values, Map<String, String[]>
.
<zscript>
String[] values = param.get("something");
</zscript>
Version History
Version | Date | Content |
---|---|---|