我在遗留项目中使用Struts 1.1,我无法升级到更新版本:
An error occurred at line: 6,331 in the generated java file
mustCodes cannot be resolved
An error occurred at line: 6,350 in the generated java file
mustDesc cannot be resolved
以下是生成导致错误的代码的JSP代码:
<bean:define id="mustCodes" name="locateVehicleForm" property="mustHaveOptionCodes"/>
<bean:define id="mustDesc" name="locateVehicleForm" property="mustHaveOptionDescs"/>
这是第6,331行
mustCodes = (java.lang.Object) _jspx_page_context.findAttribute("mustCodes");
这是第6,530行
mustDesc = (java.lang.Object) _jspx_page_context.findAttribute("mustDesc");
这不是Need help on pre-compiling legacy JSP pages with taglibs with attributes that aren't supported in Struts 1.1的副本 那个是关于.tld中不存在的属性。这是关于生成的代码,不是在引用变量名称上声明类型。