use of javax.servlet.jsp.tagext.JspTag in project jodd by oblac.
the class CaseTag method doTag.
@Override
public void doTag() throws JspException {
JspTag parent = getParent();
if (!(parent instanceof SwitchTag)) {
throw new JspException(SwitchTag.MSG_PARENT_SWITCH_REQUIRED, null);
}
SwitchTag switchTag = (SwitchTag) parent;
if ((switchTag.getValue() != null) && switchTag.getValue().equals(value)) {
switchTag.valueFounded();
TagUtil.invokeBody(getJspBody());
}
}
use of javax.servlet.jsp.tagext.JspTag in project jodd by oblac.
the class ElseTag method doTag.
@Override
public void doTag() throws JspException {
JspTag parent = getParent();
if (!(parent instanceof IfElseTag)) {
throw new JspException("Parent IfElse tag is required", null);
}
IfElseTag ifTag = (IfElseTag) parent;
if (!ifTag.getTestValue()) {
TagUtil.invokeBody(getJspBody());
}
}
use of javax.servlet.jsp.tagext.JspTag in project jodd by oblac.
the class DefaultTag method doTag.
@Override
public void doTag() throws JspException {
JspTag parent = getParent();
if (!(parent instanceof SwitchTag)) {
throw new JspException(SwitchTag.MSG_PARENT_SWITCH_REQUIRED, null);
}
SwitchTag switchTag = (SwitchTag) parent;
if (!switchTag.isValueFounded()) {
TagUtil.invokeBody(getJspBody());
}
}
use of javax.servlet.jsp.tagext.JspTag in project jodd by oblac.
the class ThenTag method doTag.
@Override
public void doTag() throws JspException {
JspTag parent = getParent();
if (!(parent instanceof IfElseTag)) {
throw new JspException("Parent IfElse tag is required", null);
}
IfElseTag ifTag = (IfElseTag) parent;
if (ifTag.getTestValue()) {
TagUtil.invokeBody(getJspBody());
}
}
Aggregations