paramValues"

From Documentation
m
m (correct highlight (via JWB))
 
(3 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
= paramValues - java.util.Map =
 
= paramValues - java.util.Map =
  
A map of parameters of the request, <tt>Map&lt;String, String[]&gt;</tt>.
+
A map of parameters of the request, <code>Map&lt;String, String[]&gt;</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 <tt>param</tt> instead.
+
To retrieve the first value of a parameter if any, use <code>param</code> instead.
  
 
<source lang="xml">
 
<source lang="xml">
Line 12: Line 12:
 
</source>
 
</source>
  
Notice that, in zscript, there is no <tt>paramValues</tt>. In additions, <tt>param</tt> is a map of possible values,  <tt>Map&lt;String, String[]&gt;</tt>.
+
Notice that, in zscript, there is no <code>paramValues</code>. <code>Param</code> is a map of possible values,  <code>Map&lt;String, String[]&gt;</code>.
  
 
<source lang="xml">
 
<source lang="xml">

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

Last Update : 2022/01/19


Version Date Content
     



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.