APPLICATION DESIGN
import java.util.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class ExampleServlet extends HttpServlet {
http://www.yourserver.com/servlet/ExampleServlet
The information in the page returned by the servlet depends on the browser. Here is the HTML page returned for a Netscape browser:
<HTML><B>Headers received with the request:</B><BR> <BR>ACCEPT-LANGUAGE: en <BR>CONNECTION: Keep-Alive <BR>ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* <BR>USER-AGENT: Mozilla/4.05 [en] (Win95; U ;Nav) <BR>ACCEPT-CHARSET: iso-8859-1,*,utf-8 <BR>HOST: test1
See Also