Servertec   Cookie Tester Servlet
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Add-ons
How To
Change Log
Future Plans
Knowledge Base
Documentation
Samples
Hello World
Display Arguments
Display Headers
URL Redirect
CGI Tester
SSI Tester
Servlet Tag
Servlet Chaining
Log
Cookie Counter
Cookie Tester
Protected Page
List Employees
Connection Pool
Simple Form
Dump Form
Page Counter
File Upload
Session Tester
Context Tester
Sales
Legal
Feedback

 

This example displays:
Cookies received from browser:
...

Cookies added:
...

Where ... are cookie key = value pairs. The Servlet also displays a form that can be used to enter new and modify existing cookie key, value pairs.

Clicking on Submit sends the values to the Servlet for processing, clicking on Submit without any values refreshes the form and clicking on Reset clears the current values in the fields.

This example uses buffered response output in order to be able to set the cookie value. Cookies must be sent along with the header before any other output is sent to the client's browser.

[ view source ] [ run ]

 top of page
 Built with iScript Copyright © 1997-2000 Servertec. All rights reserved.
Last Modified: Thu Aug 10 13:07:08 EDT 2000