Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004571 [Resin] minor always 05-23-11 11:29 07-06-11 13:04
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.9
Summary 0004571: java.lang.ClassCastException: tag file with script + custom tag
Description 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?
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
05-23-11 11:29 alex New Issue
07-06-11 13:04 ferg Assigned To  => ferg
07-06-11 13:04 ferg Status new => closed
07-06-11 13:04 ferg Resolution open => fixed
07-06-11 13:04 ferg Fixed in Version  => 3.1.11


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker