Overview

 

Package examples.servlets

The servlets in this package illustrate basic to advanced concepts about writing HTTP servlets, using the JavaSoft Java Servlet API.

 

Class Summary Description Code Execute
CookieCounterServlet Create and retrieve a cookie and set a maximum age on a cookie. XXX XXX
HelloWorldServlet Create html output in a servlet class. XXX XXX
SessionServlet Use the HttpSession class to track the number of times that a client has visited the servlet. XXX XXX
SnoopServlet Get and use request information, headers, and parameters sent by the browser. XXX XXX

 

Package examples.servlets Description

The servlet in this package illustrates basic to advanced concepts about writing HTTP servlets, using the JavaSoft Java Servlet API.

Note that for this Beta release several of the servlet examples have been removed; they will be included in the full general-availability release of WebLogic Server 8.1.

The servlet examples are deployed as part of the examplesWebApp Web Application. This Web Application defines how the servlets are deployed on WebLogic Server. The deployment descriptor for the examplesWebApp is located in your WebLogic Server installation, in the SAMPLES_HOME\server\examples\build\examplesWebApp\WEB-INF\web.xml file.

To build and run these examples, follow the instructions for the example listed above, or run the following command to build all of the servlet examples:

  prompt> ant