When I use the following code:
<jsp:setProperty name=”timesheet” property=”wed” />
I get the error message:
“The method setWed(int) in the type Timesheet is not applicable for the arguments (String)”
It is correct that the method setWed expects an int parameter. However this is not an error (as far as I understand the specifications). Section JSP.2.13.2.1 of the JSP specification says that it should automatically convert from a String to an int – so it is not an error. Or have I misunderstood something?