Home Struts Struts-logictags Struts Logic Tags
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Struts Logic Tags

Advertisement
Introduction to Struts Logic Tags Struts logic tags are conditional tags that replaces scriptlets in the jsp files.

Struts Logic Tags

     

Struts Logic Tags examples.

  1. Introduction to Struts Logic Tags
    Struts logic tags are conditional tags that replaces scriptlets in the jsp files.
     
  2. Logic Empty and notEmpty Tags
    Tag evaluation of the nested body content occurs only if the specified value is either absent (i.e. null), an empty string (i.e. a java.lang.String with a length of zero)
      
  3. Logic Equal and notEqual Tags
    if the requested variable is equal to the specified value then this tag is used to evaluate the contents contained in the nested body parts of this tag
      
  4. Logic greaterEqual and greaterThan Tags
    This tag compares the variable against the specified constant value. If the variable is greater than or equal to the specified value then the nested body contents of this tag is evaluated
      
  5. Logic lessEqual and lessThan Tags
    This tag compares the variable against the specified constant value. If the variable is less than or equal to the specified value then the nested body contents of this tag is evaluated
      
  6. Logic match and notMatch Tags
    This tag matches the variable specified as a String against the specified constant value. If the value is a substring  then the nested body content of this tag is evaluated.
      
  7. Logic present and notPresent Tags
    This tag checks the current request and depending on which attribute is specified, it evaluates the nested body content of this tag only if the specified value is present. 
      

  8. Logic Present Tag (<logic:equal>...</logic:equal>) 
    Logic Present Tag

     

Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 25, 2008

Ask Questions?    Discuss: Struts Logic Tags   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com