/* ** This is uer login page for Training System ** Class: LoginPage ** Author: Yuping Zhu ** Date: 03-11-1999 ** Modified Date: 06-17-1999 ** Action: Add information line ** Modified Date: 10-06-1999 ** Action: Redesign web interface */ package ascdb.pub; import oracle.html.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import ascdb.conf; import java.text.Collator; public class FirstPage extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Output HTML page header res.setContentType("text/html"); PrintWriter out = res.getWriter(); conf dbconf= new conf(req); Collator cl = Collator.getInstance(); String title = "Welcome to ASC TMD System"; /* out.println(""); out.println(title); out.println(""); out.println(" alt=\"PET\">"); out.println(""); out.println("

" + dbconf.ImageBase + " and " + dbconf.ServerURLBase + "

"); out.println("

Congratulations, Apache JServ under ascdb/pub is working!
"); out.println(""); out.close(); */ // Creates an HtmlHead Object HtmlHead hd = new HtmlHead("Training System Welcome Page"); // Create an HtmlBody Object HtmlBody bd = new HtmlBody(); // Sets various attributes of HtmlBody bd.setBackgroundColor("#fffff2"); // Creates an HtmlPage object using hd and bd HtmlPage hp = new HtmlPage(hd, bd); Font f = new Font(Color.red,"myfont","+5"); hp.addItem(new SimpleItem("ok")); out.println(hp); } }