I just started trying to use ECS 1.3.3, and 
the Body class doesn't seem to be behaving like it should.
Is it me, or is it the code?

I compile the following code in a HttpServlet, 

  Html html = new Html();
  Head head = new Head();
  Body body = new Body();

  html.addElement(head);
  html.addElement(body); 
     .....

and I get the message: " Incompatible type for method.
Explicit cast needed to convert Body to org.apache.ecs.Element. 
html.addElement(body);

If I do a cast (which I shouldn't have, no?), then the server 
won't run the servlet.

Also, if I forget trying to add the body to the html, and 
instead just try to add elements to the body, e.g., 

  body.addElement(new H1("This is a H1"));

then the compiler complains,

"Method addElement(org.apache.ecs.html.H1) not found in class Body.
body.addElement(h1);

I'm compiling with Java 1.2.1_02


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to