Hello, I am trying to parse xml sent via HTTP within a servlet. I've created a class, Echo, which handles the parsing of the data. I call the Echo class from my servlet, providing it the xml data. I am getting the following error message when I compile: cannot resolve symbol symbol : constructor Echo () location: class Echo DefaultHandler handler = new Echo(); Anyone have any idea how I can resolve this error?
Since you have specified a constructor that uses a String, the compiler won't automatically supply a no-args constructor as in your line. DefaultHandler handler = new Echo(); But it seems to me you don't want to install another Echo - you want to use "this" Echo. Bill
Joined: Apr 17, 2003
Thank you William. That was very helpful. I am fairly new to Java so excuse some of questions. I was able to compile it successfully. Dan