Thanks all for the detailed explanation related to Cookies. Maha Anna is one of the persons without whose contributions to this site I would not have completed my SCJP2 41 mock exams are a journey to SCJP2.
If you know C language then the include directive is similar to #include directive there. include directive is used to include a jsp file in the current jsp file. The reason why this could be done is to separate presentation layer into various jsp pages so that if a change is required for one page, the entire presentation layer need not change. There are two ways of including a file : a) the include directive and another with <jsp:include> action. The latter is used when the design requires the inclusion of the file as run-time. For eg during run-time another jsp file gets generated and this is included at run-time. HTH
First of all forget Jawa Web server as it is obsolete. Install Tomcat. And Admin port of JWS is not 8080 but 9090. Try with http://localhost:8080 or http://127.0.0.1:8080/ The name with NE...:9090 is the Name of the Host which the windows is not able to resolve with Domain Name Service. Every host in the network has a IP Address and the Host Name. If one refers to the host name instead of an IP it tries to resolve the the Domain Name Service the WorldWide database of the Internet. Hence the error. HTH
When I provide 3600 as a parameter to setMaxAge for Cookies I means I am setting the Cookie age to one hour. How is one hour calculated at the server ? Is it one hour from the actual creation of the cookie. Is there a difference between the Cookie life-time and the actual one hour ?