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
What is form bean in struts?
What is struts in java with example?
How tag libraries are defined in Struts?
What are disadvantages of Struts?
What are the some useful annotations introduced in struts2?
Will the struts tags support other markup languages such as wml ?
What is the use of token interceptor in Struts2?
What is the actionform?
When should be opt for struts framework?
How to handle exceptions in structs?
What is the purpose of @result annotation?
Explain the life cycle of a request in struct2 application?
What is the use of Struts.xml configuration file?
What are the differences between http direct and http indirect?
What are action errors?