|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.bea.wlw.netui.tags.AbstractBaseTag
com.bea.wlw.netui.tags.html.ParameterMap
public class ParameterMap
Writes each in a map of URL parameters to a URL on its parent tag. The parent tag must implement URLParams.
| Attribute Descriptions | |||
|---|---|---|---|
| Attribute | Required | Runtime Expression Evaluation | Data Bindable |
| map | Yes | No | Read Only |
| An expression pointing to a map of parameters. | |||
Parameter,
Serialized Form 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
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/parameterMap/index.jsp
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/binaryFlow/detailsDocumentContent.jsp
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/netui_databinding/grid/detailsItems.jsp
Writes a group of name/value pairs to the URL or the parent tag.
The <netui:parameterMap> can be nested inside of the
Anchor,
Button,
Form, and
Image tags.
You can dynamically determine the value of the <netui:parameterMap> tag by pointing
the map attribute at a java.util.HashMap object.
| Field Summary | |
|---|---|
protected String |
map
|
protected Map |
paramMap
|
| Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag |
|---|
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface com.bea.wlw.netui.tags.html.HtmlConstants |
|---|
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
|---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ParameterMap()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
Add each parameter in the URL parameter map to the Parameter's parent. |
String |
getMap()
Gets the map expression. |
String |
getTagName()
Return the name of the Tag. |
protected void |
localRelease()
Release any acquired resources. |
void |
setMap(String map)
Sets the map expression. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
|---|
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
getParent, setParent |
| Field Detail |
|---|
protected String map
protected Map paramMap
| Constructor Detail |
|---|
public ParameterMap()
| Method Detail |
|---|
public String getTagName()
getTagName in class AbstractBaseTagpublic String getMap()
public void setMap(String map)
throws javax.servlet.jsp.JspException
map - - the map expression.
javax.servlet.jsp.JspExceptionjava.util.Map of parameters.
The expression can point at any implementation of the java.util.Map interface,
including java.util.AbstractMap,
java.util.HashMap,
java.util.Hashtable, etc.
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP exception has occurredprotected void localRelease()
localRelease in class AbstractBaseTag
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||