Tag Archives | struts logic tags

Struts <logic:redirect> Tag

The <logic:redirect> tag renders an HTTP Redirect. It Performs an HttpServletResponse.sendRedirect() call to the hyperlink specified by the attributes to this tag. URL rewriting will be applied automatically, to maintain session state in the absence of cookies. The base URL for this redirect is calculated based on which of the following attributes you specify (you [...]

Continue Reading ... Comments { 0 }

Struts <logic:present> and <logic:notPresent> Tag

The <logic:present> tag generates the nested body content of this tag if the specified value is present in this request. Whereas <logic:notPresent> tag generates the nested body content of this tag if the specified value is not present in this request. In order to use the Struts HTML Tags you need to include the following [...]

Continue Reading ... Comments { 0 }

Struts <logic:messagesPresent> and <logic:messagesNotPresent> Tag

The <logic:messagesPresent> tag generates the nested body content if the specified message is present in the request. Whereas <logic:messagesNotPresent> tag generates the nested body content if the specified message is not present in the request. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page. [...]

Continue Reading ... Comments { 0 }

Struts <logic:match> and <logic:notMatch> Tag

The <logic:match> tag evaluates if the specified value is an appropriate substring of the requested variable. Whereas <logic:notMatch> tag evaluates if the specified value is not an appropriate substring of the requested variable. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page. First create [...]

Continue Reading ... Comments { 0 }

Struts <logic:lessThan> and <logic:lessEqual> Tag

The <logic:lessThan> tag evaluates if the requested variable is less than specific value. Whereas <logic:lessEqual> tag evaluates if the requested variable is less than equal to specific value. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page. First create a new Dynamic Web Project [...]

Continue Reading ... Comments { 0 }

Struts <logic:iterate> Tag

The <logic:iterate> tag is used to iterate the data or object over collection. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click Here Add the following dependencies in [...]

Continue Reading ... Comments { 0 }

Struts <logic:greaterThan> and <logic:greaterEqual> Tag

The <logic:greaterThan> tag evaluates if the requested variable is greater than specific value. Whereas <logic:greaterEqual> tag evaluates if the requested variable is greater than equal to specific value. In order to use the Struts HTML Tags you need to include the following taglib directive in the jsp page. First create a new Dynamic Web Project [...]

Continue Reading ... Comments { 0 }

Struts <logic:forward> Tag

The <logic:forward>> tag forwards control to the page specified by the specified ActionForward entry. It performs a PageContext.forward() or HttpServletResponse.sendRedirect() call for the global ActionForward entry for the specified name. URL rewriting will occur automatically if a redirect is performed.

Continue Reading ... Comments { 0 }

Struts <logic:empty> and <logic:notEmpty> Tag

The <logic:empty> tag evaluates if the requested variable is either null or an empty string. Whereas <logic:notEmpty> tag evaluates if the requested variable is neither null, nor an empty string, nor an empty java.util.Collection (tested by the .isEmpty() method on the java.util.Collection interface). In order to use the Struts HTML Tags you need to include [...]

Continue Reading ... Comments { 0 }