Basic HTML version of Foils prepared May 19 99

Foil 18 Processing HTTP requests

From Overview of JDBC: Java Database Connectivity Java Servlets -- Spring Semester 1999. by Nancy McCracken


1 The doPost method is required to open an InputStream to get the parameters, however, it can call a method parsePostData, that returns a Hashtable with the names and values of the parameters.
2 To create a cookie on the browser, you create an object of type Cookie and use res.addCookie( c) to send it to the browser. Cookies are retrieved by using methods getCookies, and getName and getValue for individual cookies.
3 There is also a special HPPTSession class that implicitly uses cookies to allow you to save session information as name/value pairs in between requests.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999