Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.JspTag


    @Test(expected = UnsupportedOperationException.class)
    public void testGetParameter() {
        JspFragment jspBody = createMock(JspFragment.class);
        JspContext jspContext = createMock(JspContext.class);
        JspTag parent = createMock(JspTag.class);
        replay(jspBody, jspContext, parent);
        JspAutotagRuntime runtime = new JspAutotagRuntime();
        runtime.setJspBody(jspBody);
        runtime.setJspContext(jspContext);
        runtime.setParent(parent);
View Full Code Here


*/
public class ThenTag extends SimpleTagSupport {

  @Override
  public void doTag() throws JspException {
    JspTag parent = getParent();
    if (parent == null || !(parent instanceof IfElseTag)) {
      throw new JspException("Parent IfElse tag is required", null);
    }

    IfElseTag ifTag = (IfElseTag) parent;
View Full Code Here

public class DefaultTag extends SimpleTagSupport {

  @Override
  public void doTag() throws JspException {
    JspTag parent = getParent();
    if (parent == null || !(parent instanceof SwitchTag)) {
      throw new JspException(SwitchTag.MSG_PARENT_SWITCH_REQUIRED, null);
    }

    SwitchTag switchTag = (SwitchTag) parent;
View Full Code Here

*/
public class ElseTag extends SimpleTagSupport {

  @Override
  public void doTag() throws JspException {
    JspTag parent = getParent();
    if (parent == null || !(parent instanceof IfElseTag)) {
      throw new JspException("Parent IfElse tag is required", null);
    }

    IfElseTag ifTag = (IfElseTag) parent;
View Full Code Here

    this.value = value;
  }

  @Override
  public void doTag() throws JspException {
    JspTag parent = getParent();
    if (parent == null || !(parent instanceof SwitchTag)) {
      throw new JspException(SwitchTag.MSG_PARENT_SWITCH_REQUIRED, null);
    }

    SwitchTag switchTag = (SwitchTag) parent;
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.tagext.JspTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.