Hi, I'm trying to use the ecs jar in a servlet
But when I tried to create the Html object, the servlet returns an
internal server error.
I don't know what I'm doing wrong
This is my code
package ecs;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.ecs.html.*;
public class ecs1 extends HttpServlet
{
public void doGet (HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
{
PrintWriter out;
response.setContentType("text/html");
out = response.getWriter();
Document doc = (Document) new Document()
.appendTitle("Demo")
.appendBody(new H1("Demo Header"))
.appendBody(new H3("Sub Header:"))
.appendBody(new Font().setSize("+1")
.setColor(HtmlColor.WHITE)
.setFace("Times")
.addElement("The big dog & the little cat
chased each other."));
out.println(doc.toString());
out.close();
}
}
Does anybody can help me
--
Computers let you make More mistakes faster
than any other invention in human history
with the possible exception of handguns and tequila.
cArLos 8-)
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]