Forum

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

Reply

What is the use of <logic:present/> and <logic:notPresent/> tag defined by Logic tag library in Struts framework?
The <logic:present/> tag evaluates its body if the variable specified by any one of the cookie, header, name, parameter, or property attributes is present in the applicable scope. The <logic:present/> tag has a body type of JSP and supports eight attributes:
cookie, header, name, property, parameter, scope, role, user.

The <logic:notPresent/> tag evaluates its body if the variable specified by any one of the cookie, header, name, parameter, or property attributes is not present in the applicable scope. The <logic:notPresent/> tag has a body type of JSP and supports eight attributes:
cookie, header, name, property, parameter, scope, role, user.