Home Struts Struts-logictags Struts Logic Tags



Struts Logic Tags
Posted on: February 25, 2008 at 12:00 AM
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

     

Related Tags for Struts Logic Tags:
javacstringjspfilefilesscriptnullstrutsiotagsluareplacenestedlogicconditionalipcontentvaluetagevalintloglengthevaluationjsemptyifconditioniewithtocilaneilitzeroreplnotulpeceinnointroductionbodymnttrtempletjaceesspecscriptletemintroptyuatsspatishallnoteepleplduandarccstrvazscrssriringripthcondavstabatialuhateitherevaevaplndonlyononl


More Tutorials from this section

Ask Questions?    Discuss: Struts Logic Tags   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.