Apache Project |
The Apache FAQ |
Apache Module Registry |
The Jakarta Project |
The Apache Software Foundation |
PHP Server Side Scripting |
Apache XML Project |
The Java Apache Project |
Apache-Perl Integration Project |
Apache-Related Projects |
ApacheCon |
|
|
|
internet.com
Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources
Search internet.com
Advertising Info
Corporate Info
|
|
JavaBoutique: Java Servlets Part 4: Handling Form Data
Jun 5, 2000, 15 :52 UTC (0 Talkback[s]) (441 reads) |
"Extracting the needed information from this form data is traditionally one of the most tedious parts of CGI programming. First of all, you have to read the data one way for GET requests (in traditional CGI, this is usually via the QUERY_STRING environment variable), and another way for POST requests (usually be reading the standard input). Second, you have to chop the pairs at the ampersands, then separate the parameter names (left of the equals signs) from the parameter values (right of the equals signs). Third, you have to URL-decode the values. Alphanumeric characters get sent unchanged, but spaces get converted to plus signs and other characters get converted to %XX where XX is the ASCII (or ISO Latin-1) value of the character, in hex."
Complete Story.
|
|