If you’re familiar with JavaBeans from any earlier lifetime, this is no surprise to you. JavaBean properties can be anything, but if they’re Strings or primitives, all the coercing is done for you.
That’s right—you don’t have to do the parsing and conversion yourself
If we make the type Employee (instead of Person)
It all works
The <jsp:setProperty> action takes the String request parameter, converts it to an int, and passes that int to the bean’s setter method for that property.