I am trying to get the htmlKona package to work with
JWS 1.1.3. But for some reasons, ServletPage.output(
response.getOutputStream()) and ServletPage.outputHeader(
response.getOutputStream()) produce nothing ("The
Document contained no data" on client side). If I use
ServletPage.outputBody, the page does get sent to the
client without header. I have enclosed the sample code
bellow. Any thing I have missed?

Thanks,

csc

-----------------------------------------------
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

import weblogic.html.*;

public class OutputTest extends HttpServlet {

  //Initialize global variables
  public void init(ServletConfig config) throws ServletException {
    super.init(config);
  }

  //Process the HTTP Get request
  public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
    response.setContentType("text/html");

    ServletPage page = new ServletPage();
    page.getHead().addElement(new TitleElement("Hello World"));
    page.getBody().addElement(new BigElement("Hello World!"));

    page.output(response.getOutputStream());

  }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to