<html><div style='background-color:'><DIV class=RTE>
<P>Which method is it complaining about <BR><BR></P></DIV>
<DIV></DIV>>From: "Aggarwal, Sushil" <sushil.aggarwal@FMR.COM>
<DIV></DIV>>To: <jdom-interest@jdom.org>
<DIV></DIV>>Subject: [jdom-interest] Problems in adding an element
<DIV></DIV>>Date: Mon, 10 Jan 2005 05:58:53 -0500
<DIV></DIV>>
<DIV></DIV>>Hi,
<DIV></DIV>> Element objRoot = new Element("Request");
<DIV></DIV>> Document objDocument = new Document(objRoot);
<DIV></DIV>>
<DIV></DIV>> Element objRequestType = new Element("Request_Type");
<DIV></DIV>>
<DIV></DIV>> objRequestType.setText("DEFAULT");
<DIV></DIV>> objRoot.addContent(objRequestType);
<DIV></DIV>>
<DIV></DIV>> This code gives me a runtime error on the JSP page with the new
<DIV></DIV>>JDOM api i.e. 1.0
<DIV></DIV>> Error 500 : Incompatible argument to method
<DIV></DIV>> Kindly provide what I am doing wrong or missing?
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Thanks & Regards,
<DIV></DIV>>Sushil Aggarwal
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Any comments or statements made in this email are not necessarily those
<DIV></DIV>>of Fidelity Business Services India Pvt. Ltd. or any of the Fidelity
<DIV></DIV>>Investments group companies. The information transmitted is intended
<DIV></DIV>>only for the person or entity to which it is addressed and may contain
<DIV></DIV>>confidential and/or privileged material. If you have received this in
<DIV></DIV>>error, please contact the sender and delete the material from any
<DIV></DIV>>computer. All e-mails sent from or to Fidelity Business Services India
<DIV></DIV>>Pvt. Ltd. may be subject to our monitoring procedures.
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>_______________________________________________
<DIV></DIV>>To control your jdom-interest membership:
<DIV></DIV>>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
<DIV></DIV></div></html>