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


Please Help Members By Posting Answers For Below Questions

Explain about tiles?

572


Mark the differences between html tags and strut specific html tags.

586


What is spring and struts in java?

509


Give an example of validates method used to avoid errors.

505


Can we have multiple struts config files ?

537






What are the benefits of Struts framework?

559


What is difference between lookupdispatchaction and dispatchaction?

627


Which technologies can be used at view layer in struts?

642


When should we use SwtichAction?

595


What is ValueStack and OGNL?

567


Can explain about the validations and in your project where did u used the validations?

6396


What is the purpose of @stringlengthfieldvalidator annotation?

598


What is use of i18n interceptor?

538


Why do we need struts?

542


Are struts thread safe?

559