WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

Package examples.servlets

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

See:
          Description

Class Summary
CookieCounter This servlet example demonstrates how to create and retrieve a cookie and how to set a maximum age on a cookie.
ErrorServlet This simple servlet sends back an HTTP error response.
HelloKonaServlet This example constructs an htmlKona servlet page that prints "Hello world!" on it.
HelloWorld2 The HelloWorld2 servlet uses initialization parameters to display two strings in the output ("Welcome WebLogic Developer!").
HelloWorld3 The HelloWorld3 example contains exactly the same Java code as the HelloWorld2 example, but the initialization parameters are not defined in the web.xml file.
HelloWorldServlet The HelloWorldServlet demonstrates creating HTML output in a servlet class.
PhoneServlet The PhoneServlet example demonstrates processing data received from a form and reading data from a text file.
SessionServlet This is a simple example of an HTTP servlet that uses the HttpSession class to track the number of times that a client has visited the servlet.
SimpleFormServlet This example demonstrates using HTML forms in servlets and using htmlKona tables to display the output.
SnoopServlet This servlet demonstrates getting and using the request information, headers, and parameters sent by the browser.
SurveyServlet This example servlet takes input from a form and writes it out to a simple text file.
 

Package examples.servlets Description

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

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 config/examples/applications/examplesWebApp/WEB-INF/web.xml file.

To build and run these examples, follow the instructions for each of the examples listed above.

There's More...

Read more about:


Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.