If you can stand it, it gets even BETTER...

Watch what happens if you make ALL the request parameter names match the bean property names. The person bean (which is an instance of foo. Employee) actually has two properties—name and empID.

If we change the HTML again

image with no caption

We get to do this

image with no caption
image with no caption

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.