|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectBodyTagSupport
com.raritantechnologies.searchApp.taglibrary.RequestParameterSwitchTag
Implements a JSP tag that conditionally displays its body contents depending on the result of a comparison between a tag attribute and the value of a request parameter.
Example:
<quickstart:switch requestParam="format" matchValue="plain" stopOnMatch="yes"> [other HTML or JSP tags] </quickstart:switch>
Tag attributes:
| use case | requestParameter= | matchValue | result |
| case 1 | "dog" | "dog" | show block |
| case 2 | "dog" | "cat" | skip block |
| case 3 | any value | null | show block |
| case 4 | null or empty | "dog" | skip block |
| case 5 | null or empty | null | show block |
| Constructor Summary | |
RequestParameterSwitchTag()
|
|
| Method Summary | |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getMatchValue()
Bean property implementation matchValue |
java.lang.String |
getRequestParam()
Bean property implementation requestParam |
void |
release()
|
void |
setMatchValue(java.lang.String matchValue)
Sets a new value for matchValue |
void |
setRequestParam(java.lang.String requestParam)
Sets a new value for requestParam |
void |
setStopOnMatch(java.lang.String stopOnMatchString)
Sets a new value for stopOnMatch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RequestParameterSwitchTag()
| Method Detail |
public int doStartTag()
throws JspException
JspException
public int doEndTag()
throws JspException
JspExceptionpublic java.lang.String getMatchValue()
public void setMatchValue(java.lang.String matchValue)
matchValue - A String value to store in matchValue.public java.lang.String getRequestParam()
public void setRequestParam(java.lang.String requestParam)
requestParam - A String value to store in requestParam.public void release()
public void setStopOnMatch(java.lang.String stopOnMatchString)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||