File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 340

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: 60046
    
  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: 340

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
 
Similar Threads
How to get all dropdown values
Two value to be passed in select
explain html content
How to get all dropdown values
Servlet Doesn't appear to be working.