Server Technology PPNT Manual do Utilizador Página 59

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 95
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 58
Java Servlets - Internal(2/2)
servlet template:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class SomeServlet extends Ht tpSe rvle t {
public void doGet(HttpServletRequest re ques t,
HttpServletResponse response)
throws ServletException, IOException {
// Use "request" to read incomi ng HTTP headers (e.g. cookies)
// and HTML form data (e.g. data the user entered and s ubmi tted )
// Use "response" to specify th e HTTP response line and headers
// (e.g. specifying the content type, setting cookies).
PrintWriter out = response.getWriter();
// Use "out" to send content to browser
}
}
(59/95)
Vista de página 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 94 95

Comentários a estes Manuais

Sem comentários