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
Explain about tiles?
Mark the differences between html tags and strut specific html tags.
What is spring and struts in java?
Give an example of validates method used to avoid errors.
Can we have multiple struts config files ?
What are the benefits of Struts framework?
What is difference between lookupdispatchaction and dispatchaction?
Which technologies can be used at view layer in struts?
When should we use SwtichAction?
What is ValueStack and OGNL?
Can explain about the validations and in your project where did u used the validations?
What is the purpose of @stringlengthfieldvalidator annotation?
What is use of i18n interceptor?
Why do we need struts?
Are struts thread safe?