Tags : jsp component
Create tag file:
Can use other tag libraries:
[%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %]
[%@ attribute name="label" type="java.lang.String" required="true" %]
[%@ attribute name="compulsory" type="java.lang.Boolean" required="true" %]
Snippet
[c:choose]
[c:when test="${compulsory}">${label}[span class="required_true"]*[/span][/c:when]
[c:otherwise]${label}[/c:otherwise]
[/c:choose]
Import tag libraries:
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
Use tag files:
[tags:inputTextField bindPath="component.name" label="List label" compulsory="${true}"/]
Add a comment
You are not allowed to comment on this entry as it has restricted commenting permissions.