Jakarta APPLICATION Taglib Example


<%@ taglib uri="http://jakarta.apache.org/taglibs/application-1.0" prefix="app" %>

See if initialization parameter named "foo" exists

   foo=


   Init parameter foo does not exist.              

See if initialization parameter "foo" equals "bar"

  foo=


  Init parameter foo does does not equal "bar".

Now loop through all initialization parameters

    = 

Now loop through just the foo init parameter

    = 

Set an attribute named "myatt"
AAbb
See if myatt attribute exists

   myatt=


   Attribute myatt does not exist.

See if myatt equals "aabb"

  myatt=


  Attribute myatt does not equal "aabb".

See if myatt equals "aabb", ignoring case

  myatt=


  Attribute myatt does not equal "aabb", ignoring case.

Now loop through all the attributes

    = 

Now loop through just the myatt attribute

    = 

Now remove the attribute myatt

See if myatt attribute exists

   myatt=


   Attribute myatt does not exist.