com.ora.jsp.tags
Class IfContainsTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended bycom.ora.jsp.tags.IfContainsTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IfContainsTag
extends javax.servlet.jsp.jstl.core.ConditionalTagSupport

This class is a custom action for testing if a String value contains a substring. If it does, the body is evaluated. If a var attribute is provided, the result is also saved as a Boolean variable in the specified scope, or in the page if no scope is specified.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  java.lang.String substringEL
           
private  java.lang.String valueEL
           
 
Fields inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
IfContainsTag()
           
 
Method Summary
 boolean condition()
           
 void setSubstring(java.lang.String substring)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, release, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueEL

private java.lang.String valueEL

substringEL

private java.lang.String substringEL
Constructor Detail

IfContainsTag

public IfContainsTag()
Method Detail

setValue

public void setValue(java.lang.String value)

setSubstring

public void setSubstring(java.lang.String substring)

condition

public boolean condition()
                  throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException