Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the use of <logic:empty/> and <logic:notEmpty/> tag defined by Logic tag library in Struts framework?
The <logic:empty/> tag evaluates its body if either the scripting variable identified by the name attribute or a property of the named scripting variable is equal to null or an empty string. The <logic:empty/> tag has a body type of JSP and supports three attributes:
  * name : Identifies the scripting variable being tested.
  * property : Identifies the data member of the scripting variable ot be tested.(optional)
  * scope : Defines the scope of the bean specified by the name attribute.

The <logic:notEmpty/> tag evaluates its body if either the scripting variable or property of the named scripting variable is not equal to null or an empty string. The <logic:empty/> tag has a body type of JSP and supports three attributes:
  * name : Specifies a scripting variable to be used as the variable being tested.(Required)
  * property : Specifies the data member of the scripting variable to be tested.(optional)
  * scope : Defines the scope of the bean specified by the name attribute.