Enables entry of Map data on a form.

Attributes

Description

value

Required, specifies one or more key/value pairs separated by the separator character—by default, a comma.

keyvalueseparator

Optional, the character that separates a Map key and its value.

Default: equals sign (=)

separator

Optional, the character that separates multiple key/value settings.

Default: comma (,)

Usage Notes

ATG’s built-in map converter facilitates input of Map property values on forms. You can use it with dsp:input as follows:

<dsp:input bean="FormHandler.map-property" converter="map"
   value="
key=value"[,...] />

Note: The map converter is not required by the RepositoryFormHandler, which can handle Map data in its own way (see Managing Map Properties in the RepositoryFormHandler chapter).

The map converter lets you input multiple key/value pairs. For example:

Please verify the following address:<br/><br/>

Street:&nbsp;<c:out value="${emp.street}"/>  <br/>
City::&nbsp;<c:out value="${emp.city}"/>     <br/>
State::&nbsp;<c:out value="${emp.state}"/>   <br/>
Zip code::&nbsp;<c:out value="${emp.zip}"/>  <br/>

<dsp:input type="hidden"
  bean="FormHandler.address" converter="map"
  value="street=${emp.street},city=${emp.city},state=${emp.state},zip=${emp.zip}"
/>

For more information on using the map converter, see Map Properties in the Forms chapter.


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices