Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Re: jdom-interest digest, Vol 1 #1453 - 1 msg

Re: jdom-interest digest, Vol 1 #1453 - 1 msg

2004-03-30       - By Bob H Pierce

 Back




Did you build the jdom.jar library or did you use the binary that was
downloaded? If you did not build the jar file, try building it yourself. I
had problems using the jdom.jar file that was downloaded. It appeared not
to support some of the documented APIs. When I built myself everything I
tried seemed to work ok as documented.

The instructions to build are in jdom-b10\README.txt file.

Bob Pierce




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- ------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
-- ------




                                                                             
                                                       
                     jdom-interest-re                                        
                                                       
                     quest                    To:      jdom-interest@(protected)
                                                       
                     @(protected)                cc:                            
                                                       
                     Sent by:                 Subject: jdom-interest digest,
Vol 1 #1453 - 1 msg                                      
                     jdom-interest-ad                                        
                                                       
                     min                                                      
                                                       
                                                                             
                                                       
                                                                             
                                                       
                     03/30/2004 02:01                                        
                                                       
                     AM                                                      
                                                       
                     Please respond                                          
                                                       
                     to jdom-interest                                        
                                                       
                                                                             
                                                       
                                                                             
                                                       




Send jdom-interest mailing list submissions to
            jdom-interest@(protected)

To subscribe or unsubscribe via the World Wide Web, visit
            http://lists.denveronline.net/mailman/listinfo/jdom-interest
or, via email, send a message with subject or body 'help' to
            jdom-interest-request@(protected)

You can reach the person managing the list at
            jdom-interest-admin@(protected)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."


Today's Topics:

  1. Unable to compile program -- addContent (Joseph Yin)

--__--__--

Message: 1
Date: Mon, 29 Mar 2004 17:21:35 -0800
To: jdom-interest@(protected)
From: Joseph Yin <jyin@(protected)>
Subject: [jdom-interest] Unable to compile program -- addContent

--=====================_32275449==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi there:

I just got the JDOM b10 downloaded and realized that the Element class
implements the Parent Interface.  I have the following codes that will not
compile:

rootElement.addContent(new Element("Course").addContent("Math"));

Where the rootElement is already defined as the root element and I am
trying to add another element called Course and apply it's content.

The error message I received is something like....
cannot resolve symbol
symbol  : method addContent (org.jdom.Parent Source code of org.jdom.Parent)
location: class org.jdom.Element Source code of org.jdom.Element


If I break this one statement into the following then everything works:

Element course = new Element("Course");
course.addContent("Math");
rootElement.addContent(course);

The same one-liner code use to work in Beta 9 version.  Can anyone offer me

some hints or possible fixes using Beta 10.

Best, Joseph
jyin@(protected)

=====================================================================
Joseph C. Yin, MSBA (IS Auditing)               Location:       S-204A
Staff Programmer
Analyst                                Phone#          (858) 651-0316
QUALCOMM
Incorporated.                          Fax    #                (858)
658-1011
IT Product Development Services                 EMail : jyin@(protected)
"TEAM - Together Everyone Accomplishes More"
==================================================
--=====================_32275449==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
Hi there:<br><br>
I just got the JDOM b10 downloaded and realized that the Element class
implements the Parent Interface.&nbsp; I have the following codes that
will not compile:<br><br>
rootElement.addContent(new
Element(&quot;Course&quot;).addContent(&quot;Math&quot;));<br><br>
Where the rootElement is already defined as the root element and I am
trying to add another element called Course and apply it's content.&nbsp;
<br><br>
The error message I received is something like....<br>
cannot resolve symbol<br>
symbol&nbsp; : method addContent (org.jdom.Parent Source code of org.jdom.Parent)<br>
location: class org.jdom.Element Source code of org.jdom.Element<br><br>
<br>
If I break this one statement into the following then everything
works:<br><br>
Element course = new Element(&quot;Course&quot;);<br>
course.addContent(&quot;Math&quot;);<br>
rootElement.addContent(course);<br><br>
The same one-liner code use to work in Beta 9 version.&nbsp; Can anyone
offer me some hints or possible fixes using Beta 10.<br><br>
Best, Joseph<br>
jyin@(protected)<br>
<x-sigsep><p></x-sigsep>
=====================================================================
<br>
<font size=4><b><i>Joseph C. Yin</i></b>, <b><i>MSBA (IS
Auditing)</i></b><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x
-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><b><i
>Location:

<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>S-204A<br>
Staff Programmer
Analyst<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;
&nbsp;

<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;</x-tab>Phone#<x-tab>&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(858)

651-0316 <br>
QUALCOMM Incorporated.<x-tab>&nbsp;&nbsp;</x-tab>&nbsp;&nbsp;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;</x-tab>Fax&nbsp;&nbsp;&nbsp;

#
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(858)

658-1011<br>
IT Product Development
Services<x-tab>&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab
>EMail

: jyin@(protected) <br>
</i></b><font size=4 color="#0000FF">&quot;<b><i>TEAM</i></b> -
<b><i>T</i></b>ogether <b><i>E</i></b>veryone <b><i>A</i></b>ccomplishes
<b><i>M</i></b>ore&quot; <br>
</font><font
size=4>==================================================</font><font
size=4 color="#FF0000">
</font></body>
</html>

--=====================_32275449==.ALT--



--__--__--

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
.com


End of jdom-interest Digest



__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)
.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.