File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes Why can't I use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Why can Watch "Why can New topic
Author

Why can't I use "new Digester()"?

gshu
Greenhorn

Joined: Jan 25, 2002
Posts: 5
I am trying to use "org.apache.struts.digester.Digester". When I use it, my code compiles with no problem, but it can not continue when it reached the "Digester digester = new Digester();".
It is a empty constructor in Digester class. What wrong with it? Thanks!
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 5288
    
  10

"gshu"
Please review the JavaRanch Naming Policy. You will need to re-register with a Display name that conforms with the naming policy.
Thanks for your cooperation.
As for your question, the Digester() constructor calls the superclass constructor (org.xml.sax.HandlerBase). This is also an empty constructor which means it calls the no-args constructor of Object. There must be something else causing your problem. Perhaps if you post a few more lines of code, we can get a better idea of what's actually happening.
Please don't forget to re-register. Thanks!
Junilu
Guos Hu
Greenhorn

Joined: Jan 28, 2002
Posts: 9
please see the questiion of new registered name Guos Hu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can't I use "new Digester()"?