netui
netui:parameterMap Tag
Writes a group of name/value pairs to the URL or the parent tag.
<netui:parameterMap
map="string_mapObject" >
... JSP content ...
</netui:parameterMap>
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 HashMap
object.
Attributes |
map |
Required: Yes | Type:
Map |
Supports runtime evaluation / JSP Expression Language: Yes |
A data binding expression pointing to a Map of parameters.
The expression can point at any implementation of the java.util.Map interface,
including AbstractMap ,
HashMap ,
Hashtable , etc. |
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 Information |
Tag Class | org.apache.beehive.netui.tags.html.ParameterMap |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |