Examples of URLTag


Examples of com.agiletec.aps.tags.URLTag

 
  @Override
  public int doEndTag() throws JspException {
    BodyContent body = this.getBodyContent();
    String value = body.getString();
    URLTag parentTag = null;
    try {
      Tag tag = this;
      do {
        tag = tag.getParent();
      } while (!(tag instanceof URLTag));
      parentTag = (URLTag) tag;
    } catch (RuntimeException e) {
      throw new JspException("Error nesting parameter in url tag.", e);
    }
    parentTag.addParameter(this.getName(), value);
    return EVAL_PAGE;
  }
View Full Code Here

Examples of org.apache.struts2.views.jsp.URLTag

    public void testURLComponentDisposeItselfFromComponentStack() throws Exception {
        TextFieldTag t = new TextFieldTag();
        t.setPageContext(pageContext);
        t.setName("textFieldName");

        URLTag tag = new URLTag();
        tag.setPageContext(pageContext);

        try {
            t.doStartTag();
            tag.doStartTag();
            assertEquals(tag.getComponent().getComponentStack().peek(), tag.getComponent());
            tag.doEndTag();
            assertEquals(t.getComponent().getComponentStack().peek(), t.getComponent());
            t.doEndTag();
        }
        catch(Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.struts2.views.jsp.URLTag

  public void testURLComponentDisposeItselfFromComponentStack() throws Exception {
    TextFieldTag t = new TextFieldTag();
    t.setPageContext(pageContext);
    t.setName("textFieldName");
   
    URLTag tag = new URLTag();
    tag.setPageContext(pageContext);
   
    try {
      t.doStartTag();
      tag.doStartTag();
      assertEquals(tag.getComponent().getComponentStack().peek(), tag.getComponent());
      tag.doEndTag();
      assertEquals(t.getComponent().getComponentStack().peek(), t.getComponent());
      t.doEndTag();
    }
    catch(Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of org.apache.struts2.views.jsp.URLTag

    public void testURLComponentDisposeItselfFromComponentStack() throws Exception {
        TextFieldTag t = new TextFieldTag();
        t.setPageContext(pageContext);
        t.setName("textFieldName");

        URLTag tag = new URLTag();
        tag.setPageContext(pageContext);

        try {
            t.doStartTag();
            tag.doStartTag();
            assertEquals(tag.getComponent().getComponentStack().peek(), tag.getComponent());
            tag.doEndTag();
            assertEquals(t.getComponent().getComponentStack().peek(), t.getComponent());
            t.doEndTag();
        }
        catch(Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.apache.struts2.views.jsp.URLTag

    public void testURLComponentDisposeItselfFromComponentStack() throws Exception {
        TextFieldTag t = new TextFieldTag();
        t.setPageContext(pageContext);
        t.setName("textFieldName");

        URLTag tag = new URLTag();
        tag.setPageContext(pageContext);

        try {
            t.doStartTag();
            tag.doStartTag();
            assertEquals(tag.getComponent().getComponentStack().peek(), tag.getComponent());
            tag.doEndTag();
            assertEquals(t.getComponent().getComponentStack().peek(), t.getComponent());
            t.doEndTag();
        }
        catch(Exception e) {
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.