ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Struts
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1728)
 Advanced Java interview questions  Advanced Java Interview Questions (332)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (147)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
Which parser is used in Struts to parse the Structconfig.xml
file.
 Question Submitted By :: Struts
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
it's SAX parser we use, to parse the Struct-Config.xml file. 
Is This Answer Correct ?    13 Yes 0 No
Dasari Ravinder
 
Answer
# 2
digester 
Is This Answer Correct ?    9 Yes 0 No
Shivram
 
 
 
Answer
# 3
Digester is used to parse struts-config.xml

http://www.onjava.com/pub/a/onjava/2002/10/23/digester.html
 
Is This Answer Correct ?    9 Yes 0 No
Mari
 
Answer
# 4
SAX Parser is used to parse the xml file because basically
it is for the ActionServlet to read the xml file rather
than writing something into the struts-config xml file
just the action servlet has to read the file and construts
the module config object for the one time and load it
so as SAX Parser is basically for reading and doing some
search operation Struts uses this aproach intelligently.
 
Is This Answer Correct ?    7 Yes 0 No
Achutanand
 
Answer
# 5
The Digester class parser the XML document. The Digester
framework comes with 10 prepackaged "rules," which cover
most of the required tasks when unmarshalling XML (such as
creating a bean or setting a bean property), but each user
is free to define and implement his or her own rules, as
necessary.
 
Is This Answer Correct ?    5 Yes 0 No
Sudhakar
 
Answer
# 6
I am in confusion give me right answer. But i think it's
SAX parser
 
Is This Answer Correct ?    5 Yes 1 No
Ankit
 
Answer
# 7
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 ?    5 Yes 1 No
Sandeep Barange
 
Answer
# 8
See what happens is that Struts uses the Digester to map the xml data in the struts-config.xml to java objects.
Now internally digester needs a Sax parser and it could do with either a xerces/crimson parser as both are sax parsers
 
Is This Answer Correct ?    3 Yes 0 No
Johnson Ashish Joseph
 
Answer
# 9
just give the right answer ???????????? 
Is This Answer Correct ?    2 Yes 0 No
Gcd
 
Answer
# 10
please give exact answer. 
Is This Answer Correct ?    2 Yes 0 No
Srinivas
 

 
 
 
Other Struts Interview Questions
 
  Question Asked @ Answers
 
struts is thread safe or not ?give me answer as early as possible   4
What happens when Two users requests for same action class? How the threads are controlled?   4
i have a log in web application .... i want restrict the user for particular no of users what is procedure to develop thus application   2
What is the main difference between Mvc1 and Mvc2 Architecture?? Ness-Technologies 7
Hi All thanks in advance, iam new to j2ee currently in my project we r using struts with hibernate can i have one sample application like CRUD application with code or any tutorials liks r ebooks plz....? IBM 1
what is the diff between struts1.0 and struts2.0 Intel 2
why do we typecast ActionForm into out plain java bean class in Action class?   5
How to create validations?what are struts validation components?   2
how to write uploadphoto in the insert update delete using struts? write code struts and jsp jdbc   1
when connecting with the database,if database server is down,ho can we handle this exception in struts,how can we send error message to the user? Wipro 4
what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?   1
what is the difference between model1 and model2 architecture in struts?   3
 
For more Struts Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com