Java
  Home arrow Java arrow Page 2 - The JSP Files (part 6): State Of Grace
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

The JSP Files (part 6): State Of Grace
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2001-03-26

    Table of Contents:
  • The JSP Files (part 6): State Of Grace
  • Wasted, Dude!
  • A Few Ground Rules
  • Learning To Write...
  • ...And Read
  • What's In A Name?
  • Plan B
  • Session Dissection
  • Access Denied

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The JSP Files (part 6): State Of Grace - Wasted, Dude!


    (Page 2 of 9 )

    It's one of the things geeks say to each other when they want to impressthe young women in earshot: "HTTP is a stateless protocol, and the Internetis a stateless development environment". In simple language, all this meansis that the HyperText Transfer Protocol, which is the backbone of the Web,is unable to retain a memory of the identity of each client that connectsto a Web site, and therefore treats each request for a Web page as a uniqueand independent connection, with no relationship whatsoever to theconnections that preceded it - very similar to the behaviour of some oftoday's more adventurous teenagers, who get drunk every night, wake up thenext morning with no memory at all of what happened, and go out again inthe evening to do the same thing all over again...

    Now, so long as you're aimlessly surfing from one site to another, thisworks without a problem. But what if you've decided to buy a few discs fromCDNow.com? In a "stateless environment", it would be very difficult to keeptrack of all the items you've shortlisted for purchase, as the statelessnature of the HTTP protocol would make it impossible to keep track of theitems selected.

    Consequently, what is required is a method that makes it possible to"maintain state", something that allows client connections to be trackedand connection-specific data to be maintained. And thus came about"cookies", which allowed Web sites to store client-specific information ina file on the client system, and access the information in the filewhenever required. So, in the shopping cart example above, the itemsselected would be added to the cookie, and would be retrieved and presentedto the customer in a consolidated list during the billing process.

    Why are they called "cookies"? The PR agency handling the account wasobviously asleep at the wheel.

    More Java Articles
    More By Vikram Vaswani and Harish Kamath, (c) Melonfire


     

       

    JAVA ARTICLES

    - Adding Images With iTextSharp
    - Adding Columns With iTextSharp
    - Creating Simple PDF Files With iTextSharp
    - The Spring Framework: Understanding IoC
    - Introducing the Spring Framework
    - Java Classes
    - Completing the Syntactic Comparison of Java ...
    - Syntactic Comparison of Java and C/C++
    - Java Statements
    - Conditionals, Expressions and Other Java Ope...
    - Java Operators
    - Primitive Data Types and Basic Language Rule...
    - Java and Object-Oriented Programming
    - Java Beginning Programming
    - Gaming Development Setup





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway