Mantis - Resin
Viewing Issue Advanced Details
4571 minor always 05-23-11 11:29 07-06-11 13:04
alex  
ferg  
normal  
closed 3.1.9  
fixed  
none    
none 3.1.11  
0004571: java.lang.ClassCastException: tag file with script + custom tag
rep by SHINOMIYA Nobuaki

corresponding new qa: 3.1/jsp/102c

We get ClassCastException in deploying a JSP in some situation. This
exception is thrown when the JSP meets following three conditions.

1. The JSP uses a custom tag in which scriptlets is implemented.
2. Another custom tag is used Inside that custom tag (which is
described in 1),
   and this custom tag does not use any scriptlet.
3. Inside the custom tag (which is described in 2), logic:iterate tag
   which is provided by Struts is described.

The example of the JSP which meets those conditions is as follows.

    <ext:nest1>
      <ext:nest2>
        <logic:iterate name="hogeForm" property="hogeList" id="hogeList">
          <html:text name="hogeList" property="hogeData" indexed="true" />
        </logic:iterate>
      </ext:nest2>
    </ext:nest1>



nest1.tag (with scriptlet)

    <%@ tag pageEncoding="UTF-8" %><% /*scriptlet*/ %><jsp:doBody/>



nest2.tag (with no scriptlet)

    <%@ tag pageEncoding="UTF-8" %><jsp:doBody/>



I also attach the following files. error message, JSP file, tag files,
and
generated java files when the exception occurred

Will you help us to find out why this error happens?

There are no notes attached to this issue.