Which parser is used in Struts to parse the Structconfig.xml
file.
Answer Posted / sandeep barange
Hi, Everybody,
Actually in jakarta struts there are two parsers.
one is DOM parser and another is SAX.
1) DOM, read the whole document at a time and creats tree
like structure.
2) SAX also creates tree like structure but with event, and
Digerster is a framework which simplifies the SAX parsing
by providing Higher level Interface to SAX events.
3)DOM is easier to implement, slower and more resource-
intensive than SAX.
4) Digerter is Originally designed to parse the struts-
config.xml, later recognized that this is more useful and
moved to "jakarta commons" project.
hense Digester is the framework which is desigened to parse
the struts-config.xml file, which inturn uses SAX parser.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to combine the struts with velocity template?
What is interceptor struts2?
What is the use of form bean in struts?
What is the configuration files used in struts?
How the flow of various requests happens in struts application?
How properties of a form are validated in Struts?
What is the use of forwardaction?
What are the core classes of struts?
Explain about tiles?
Can we have multiple struts config files in a single web app?
What are the sections into which a strut configuration file can be divided?
What are different Struts2 tags? How can we use them?
What are different ways to create Action classes in Struts2?
How an actionform bean is created?
What is controller in struts ?