0 Replies Latest reply on Jun 2, 2006 2:25 PM by Purushotham Botla

    Jasper compiler does not recognize variables declared by tag

    Purushotham Botla Newbie

      We are using Jboss 4.0.2 and defined a taglib which declares a variable validationDisplayStyle with AT_END scope as shown below -
      <variable->
      <name-given>validationDisplayStyle</name-given>
      <variable-class>java.lang.String</variable-class>
      <declare->true</declare->
      <scope->AT_END</scope->
      </variable->

      This tag is referenced in JSP Pages, for ex -
      <gems:validationMessageColor transactionID='<%=transactionID %>' attrCode='fee_type' currentStyle='width:251px;margin-left:3px;'/>

      Jasper, on compiling this JSP code, declares a validationDisplayStyle variable of String type, which can be referenced later in the page.

      But, in case of some jsp files (nothing special) it does not declare this variable. This causes JDT compiler to fail with unresolved symbol errors during compialtion of generated java file.

      This tag works perfectly fine in websphere 5.1 (JSP 1.2). Any help in resolving this issue will be appreciated.

      Thanks

      Puru