This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Which parser is used in Struts to parse the Structconfig.xml file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Which parser is used in Struts to parse the Structconfig.xml file." Watch "Which parser is used in Struts to parse the Structconfig.xml file." New topic
Author

Which parser is used in Struts to parse the Structconfig.xml file.

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Which parser is used in Struts to parse the Structconfig.xml file.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I think it uses the SAX parser. Try to create an invalid struts-config.xml and you'll get a org.xml.sax.SAXParseException ...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If I remember correctly it uses the commons-digester.
 
wood burning stoves
 
subject: Which parser is used in Struts to parse the Structconfig.xml file.
 
Similar Threads
Need help to understand the ActionServlet
Why is it not a validating parser?
Can a Web Application have two controllers?
Parser to parse struts-config.xml
Parser used to parse struts.xml in S2