This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servlet and HTML forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Servlet and HTML forms" Watch "Servlet and HTML forms" New topic
Author

Servlet and HTML forms

Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 346

I'm studying the behavior of HTML forms when handled by Servlet. I came across the below statement, which I'm not able to understand clearly:

An HTML select element also sends a string to the header. If none of the options in the select element is selected, the value of the option that is displayed is sent.

Please help me understand the above statment.

Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

The first part makes no sense to me. The second simply says that the first option is the default.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 346

It's definitely a mistake. The below sentence makes sense:

An HTML select element also sends a string to the server. If none of the options in the select element is selected, the value of the option that is displayed is sent.
 
Consider Paul's rocket mass heater.
 
subject: Servlet and HTML forms
 
Similar Threads
Two value to be passed in select
How to get all dropdown values
Servlet Doesn't appear to be working.
explain html content
How to get all dropdown values