aspose file tools*
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 Spring in Action this week in the Spring 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: 355

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: 61428
    
  67

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: 355

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet and HTML forms