wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ch1 q8 david book doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ch1 q8 david book doubt" Watch "ch1 q8 david book doubt" New topic

ch1 q8 david book doubt

Ankur Jain Kothari
Ranch Hand

Joined: Feb 08, 2010
Posts: 154

can anyone explain me this code...

when i ran this code only Ted was displayed...where is Male? and what is Map.Entry?

Do What You Wanna Be....Taking Things The Way They Come
scjp 1.6 91 percent, scmad 90 percent(rounded off to nearest integer)
Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

Male isn't in the parameters because the name attribute of the <input> tag is not set in that case. The correct code would be

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankur Jain Kothari
Ranch Hand

Joined: Feb 08, 2010
Posts: 154
oh yes..my mistake...but what does Map.Entry mean?
Harpreet Singh janda
Ranch Hand

Joined: Jan 14, 2010
Posts: 317

Map.Entry is a class which can be used to access the elements of Map.

Please look here for more detail.
subject: ch1 q8 david book doubt
Similar Threads
form in multilingual
How to pass the radio button attribute checked=true from the Java servlet to JSP
Request parameter is missing
problem in database
code attached element existance in javascript