1 Reply Latest reply on Aug 5, 2003 5:40 PM by kk

    Generated Servlet compilation issues

    kk

      I have a JSP that uses custom JSP tags. For development I'm using Eclipse 2.1 on windows 2000 professional. Everything works just fine locally. However, when the same application is deployed on Sun boxes (SunOS 5.8), and this JSP is accessed, I get compilation error on the generated servlet code saying a certain variable may not have been initialised. The generated servlet code (.java) files are identical both on Sun and Win-2000.

      Error is obtainer on the if statement of the following code snippet where it says _jspx_eval_formfieldtags_field_32 may not have been initialized. The same JSP has numerous similar code snippets for different variables where it seems to have no problem.

      com.avnet.apps.calypso.presentation.tags.FieldHandler _jspx_th_formfieldtags_field_32 = new com.avnet.apps.calypso.presentation.tags.FieldHandler();
      _jspx_th_formfieldtags_field_32.setPageContext(pageContext);
      _jspx_th_formfieldtags_field_32.setParent(null);
      try {
      int _jspx_eval_formfieldtags_field_32 = _jspx_th_formfieldtags_field_32.doStartTag();
      if (_jspx_eval_formfieldtags_field_32 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)


      Any clues?
      I am using JBOSS 3.0.4 - Tomcat 4.0.6. on sunOS 5.8/Windows 2000 Professional.