|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.html.ParameterMap |
Writes a group of name/value pairs to the URL or the parent tag.
Syntax |
<netui:parameterMap
map="map" />
Description |
Writes a group of name/value pairs to the URL or the parent tag.
The <netui:parameterMap> can be nested inside of the <netui:anchor> , <netui:button> , <netui:form> , and <netui:image> tags.
You can dynamically determine the value of the <netui:parameterMap> tag by pointing
the map
attribute at a
java.util.HashMap
object.
Attributes | |||||||
map |
|
Example |
Assume that there is a java.util.HashMap object in the Controller file.
public HashMap hashMap = new HashMap(); hashMap.put("q", "Socrates"); hashMap.put("lr", "lang_el"); hashMap.put("as_qdr", "m3");
The following set of tags will read the HashMap object and generate a link with a set of URL parameters.
<netui:anchor href="http://www.google.com/search"> Search Greek language web sites updated in the last three months with the query "Socrates". <netui:parameterMap map="{pageFlow.hashMap}"/> </netui:anchor>
The URL produced appears as follows:
http://www.google.com/search?lr=lang_el&q=Socrates&as_qdr=m3
|
|||
TAG LIBRARIES: <netui> | <netui-data> | <netui-template> | |||
DETAIL: Syntax | Description | Attributes | Example | Implementing Class: org.apache.beehive.netui.tags.html.ParameterMap |