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
We get to do this
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.