|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBodyTagSupport
com.raritantechnologies.searchApp.taglibrary.ConfigurablePageRequestMap
Enables JSP page variables to be set from the Configuration XML or from session data cache.
Similar to PageParameterMapTag except
that the JSP passes in the type, and name of a list of configurable attributes
which are defined in a Configuration <ParameterMap>. The parameters are then loaded into
the JSP page context so that they can be used in other places on the page.
The tag reads the configuration parameters by obtaining a Parameter Map using the ConfigurationManager.getSystemObject( ) method with the given page name and parameter type.
The ParameterMap is then used to set page variables on the SPJSP PageContext using setAttribute. These parameters can then be inserted into a JSP page using <%= theParamName %>.
| Constructor Summary | |
ConfigurablePageRequestMap()
|
|
| Method Summary | |
int |
doStartTag()
|
java.lang.String |
getBody(RaritanPageContext rpc)
Returns the tag body. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
initialize(java.util.Map initParams)
|
void |
setPageName(java.lang.String pageName)
|
void |
setParamList(java.lang.String parameterList)
Custom tag parameter: comma separated list of parameter names to be extracted ConfigurationManager ParamMap |
void |
setParamName(java.lang.String paramMapName)
|
void |
setParamType(java.lang.String paramType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConfigurablePageRequestMap()
| Method Detail |
public void setPageName(java.lang.String pageName)
public void setParamType(java.lang.String paramType)
public void setParamName(java.lang.String paramMapName)
public void setParamList(java.lang.String parameterList)
public int doStartTag()
throws JspException
JspExceptionpublic java.lang.String getBody(RaritanPageContext rpc)
ICustomTag
getBody in interface ICustomTagrpc - Platform-neutral page context ( can be used in non J2EE environments such as ASP).
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurablepublic void initialize(java.util.Map initParams)
initialize in interface ICustomTag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||