This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I'm supporting a project which uses Struts 1.0. It seems to have a bug lying in the functionality of data type conversion. I got 'No getter method for property modelYear'. My jsp code:
<bean efine id="modelYearCde" name="pFireRlvrForm" property="modelYear" type="java.lang.Integer"/> <bean efine id="vinCde" name="pFireRlvrForm" property="vin" type="java.lang.String"/> <bean efine id="confirmationCde" name="pFireRlvrForm" property="confirmation" type="java.lang.String"/> modelYear is a field in the action form with int type. Here Struts is supposed to convert it automatically into Integer type. Obviously it failed.
I know that if I wrap modelYear field with a String type, I could resolve this issue. But I wonder if I need to do that for every non-String type fields? For example, do I need to change this one too?