import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import weblogic.html.*; public class HtmlKonaHello extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); ServletPage page = new ServletPage(); page.getHead().addElement(new TitleElement("Hello World")); page.getBody().addElement(new BigElement("Hello World!")); page.output(res.getOutputStream()); } }