i,
Java
POLITECHNIKA RZESZOWSKA - Wydział EWrtrotethnikl i Infc»mitytt
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
public class RequestInfo extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
// Wyświetla informacje o żądaniu, która wywołało ten serwlet
response.setContentType("text/html");
PrintWriter out = response.getWriter(); out.println("<html>"); out.println("<head>");
out.println("<title>Request Information Example</title>"); out.println("</head>"); out.println("<body>");
out.println("<h3>Request Information Example</h3>");
out.println("<br/>Method: ” + reąuest.getMethod());
U
■H/100