Server Technology PPNT Manuale Utente Pagina 60

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 95
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 59
Java Servlets: Hello World(1/5)
Example: Hello World!
...
public void doGet(HttpServletRequest re ques t, HttpServletResponse response)
throws ServletException, IOException{
String hello = "Hello World";
response.setContentType("text/html");
PrintWriter writer = response.getWriter ();
writer.println("<html>");
writer.println("\t<head>");
writer.println(
"\t\t<link rel = \"stylesheet\" typ e = \"text/css\" href = \"style.css\ ">");
writer.println("\t\t<title>" + hello + "</title>");
writer.println("\t</head>");
writer.println("\t<body>");
writer.println(hello + " (" + ( new Date()) + ")");
writer.println("\t</body>");
writer.println("</html>");
}
...
(60/95)
Vedere la pagina 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 94 95

Commenti su questo manuale

Nessun commento