CS6320:  SW Engineering of Web Based Systems

 

  

Exercise 2:  Servlet that Reads CGI Variables

NOT COLLECTED

  • Create a Servlet that extends HttpServlet.
  • It should read the following CGI variables and print them out in a table inside of the newly generated HTML page by the Servlet.   CGI variables:  AUTH_TYPE, CONTENT_LENGTH, DOCUMENT_ROOT, PATH_INFO, QUERY_STRING, REMOTE_ADDR, REMOTE_HOST, REMOTE_USER, REMOTE__METHOD, SCRIPT_NAME, SERVER_NAME, SERVER_PORT, SERVEDR_PROTOCOL, SERVER_SOFTWARE

  •  

     
     
     

    Post your work to your server account and test, then SHOW your work to your instructor for recording towards grade.

© Lynne Grewe