Example usage for org.springframework.web.servlet.tags NestedPathTag doStartTag

List of usage examples for org.springframework.web.servlet.tags NestedPathTag doStartTag

Introduction

In this page you can find the example usage for org.springframework.web.servlet.tags NestedPathTag doStartTag.

Prototype

@Override
    public int doStartTag() throws JspException 

Source Link

Usage

From source file:org.hdiv.web.servlet.tags.form.InputTagTests.java

public void testWithNestedBind() throws Exception {
    NestedPathTag nestedPathTag = new NestedPathTag();
    nestedPathTag.setPath("spouse.");
    nestedPathTag.setPageContext(getPageContext());
    nestedPathTag.doStartTag();

    this.tag.setPath("name");

    assertEquals(Tag.SKIP_BODY, this.tag.doStartTag());

    String output = getWriter().toString();

    assertTagOpened(output);//from www  .j  ava  2s  .  com
    assertTagClosed(output);

    assertContainsAttribute(output, "type", getType());
    assertValueAttribute(output, "Sally");
}