[cvs] expresso commit by lhamel: add multiple param blurb

JCorporate Ltd jcorp at jcorporate.com
Mon Aug 15 21:32:08 UTC 2005


Log Message:
-----------
add multiple param blurb

Modified Files:
--------------
    expresso/expresso-web/expresso/doc/edg:
        controllers.xml

Revision Data
-------------
Index: controllers.xml
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/expresso/doc/edg/controllers.xml,v
retrieving revision 1.31
retrieving revision 1.32
diff -Lexpresso-web/expresso/doc/edg/controllers.xml -Lexpresso-web/expresso/doc/edg/controllers.xml -u -r1.31 -r1.32
--- expresso-web/expresso/doc/edg/controllers.xml
+++ expresso-web/expresso/doc/edg/controllers.xml
@@ -1306,6 +1306,29 @@
 		</sect2>
 	</sect1>
 	<sect1>
+		<title>Multiple parameters</title>
+		<indexterm>
+			<primary>parameters</primary>
+		</indexterm>
+		<para>
+Some web pages offer a list of checkboxes that all have the same name. When a user
+            checks multiple items, the incoming HTTP request has multiple parameters with
+            the same name. In this case, the standard Map used by the controller to store parameters in the
+            ControllerRequest will only have a single item for a given name (it is a map, after all).
+            However, the original parameters are still available in the underlying HTTP request.
+        </para>
+        <para>
+            Expresso offers access to multiple parameters in the following way, via
+            a method on Controller:
+
+            <programlisting><![CDATA[
+            String[] values = getParamValues((ServletControllerRequest) request, "paramName");
+            ]]></programlisting>
+
+
+        </para>
+	</sect1>
+	<sect1>
 		<title>Workflow</title>
 		<indexterm>
 			<primary>workflow</primary>


More information about the cvs mailing list