Package org.apache.struts2.views.java
Class XHTMLTagSerializer
java.lang.Object
org.apache.struts2.views.java.XHTMLTagSerializer
- All Implemented Interfaces:
TagHandler,TagSerializer
Write tags as XHTML
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(String text) Writes to the inner text of a tag.voidcharacters(String text, boolean encode) Writes to the inner text of a tagvoidWrites a tag closevoidsetNext(TagHandler next) voidsetup(TemplateRenderingContext context) voidstart(String name, Attributes attrs) Write a tag openening, with its attributes
-
Field Details
-
writer
-
-
Constructor Details
-
XHTMLTagSerializer
public XHTMLTagSerializer()
-
-
Method Details
-
characters
Description copied from interface:TagHandlerWrites to the inner text of a tag. By default the body is html encoded- Specified by:
charactersin interfaceTagHandler- Parameters:
text- tag body.- Throws:
IOException
-
characters
Description copied from interface:TagHandlerWrites to the inner text of a tag- Specified by:
charactersin interfaceTagHandler- Parameters:
text- tag bodyencode- html encode the body- Throws:
IOException
-
end
Description copied from interface:TagHandlerWrites a tag close- Specified by:
endin interfaceTagHandler- Parameters:
name- name of the tag- Throws:
IOException
-
setNext
- Specified by:
setNextin interfaceTagHandler
-
start
Description copied from interface:TagHandlerWrite a tag openening, with its attributes- Specified by:
startin interfaceTagHandler- Parameters:
name- name of the tagattrs- attributes of the tag- Throws:
IOException
-
setup
- Specified by:
setupin interfaceTagHandler
-