java.lang.Object | |
↳ | org.springframework.web.servlet.tags.form.TagWriter |
Utility class for writing HTML content to a Writer instance.
Intended to support output from JSP tag libraries.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new instance of the
TagWriter class that writes to
the supplied PageContext. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Close the current opening tag (if necessary) and appends the
supplied value as inner text.
| |||||||||||
Close the current tag.
| |||||||||||
Close the current tag, allowing to enforce a full closing tag.
| |||||||||||
Indicate that the currently open tag should be closed and marked
as a block level element.
| |||||||||||
Start a new tag with the supplied name.
| |||||||||||
Write an HTML attribute with the specified name and value.
| |||||||||||
Write an HTML attribute if the supplied value is not
null
or zero length. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Close the current opening tag (if necessary) and appends the supplied value as inner text.
IllegalStateException | if no tag is open |
---|---|
JspException |
Close the current tag.
Correctly writes an empty tag if no inner text or nested tags have been written.
JspException |
---|
Close the current tag, allowing to enforce a full closing tag.
Correctly writes an empty tag if no inner text or nested tags have been written.
enforceClosingTag | whether a full closing tag should be rendered in any case, even in case of a non-block tag |
---|
JspException |
---|
Indicate that the currently open tag should be closed and marked as a block level element.
Useful when you plan to write additional content in the body
outside the context of the current TagWriter
.
JspException |
---|
Start a new tag with the supplied name. Leaves the tag open so that attributes, inner text or nested tags can be written into it.
JspException |
---|
Write an HTML attribute with the specified name and value.
Be sure to write all attributes before writing any inner text or nested tags.
IllegalStateException | if the opening tag is closed |
---|---|
JspException |
Write an HTML attribute if the supplied value is not null
or zero length.
JspException |
---|