Mantis - Resin
Viewing Issue Advanced Details
1653 major always 03-21-07 06:52 04-03-07 13:58
webvir  
ferg  
normal  
closed 3.1.0  
fixed  
none    
none 3.1.1  
0001653: Compilation error using three nested tags in another tag file with scriptlet
When I use three nested tags defined in tag files in another tag file which one contains scriptlet I get compliation error:

/WEB-INF/tags/test.tag:4: non-static method getJspBody() cannot be referenced
from a static context
  _jsp._web_22dinf._tags._tag2__tag.doTag(pageContext, _jsp_context4, out, _jsp_fragment_1 = _CauchoFragment.create(_jsp_fragment_1, 1, pageContext, _jsp_parent_tag, getJspBody()));
         

See code in additional info

This compiles okay when i remove scriptlet from test.tag.
You can different errors of such kind when you insert scriptlets in tag2.tag
///test.jsp

<%@ taglib prefix="tw" tagdir="/WEB-INF/tags" %>
<tw:test/>



///test.tag

<%@ taglib prefix="tw" tagdir="/WEB-INF/tags" %>
<% //even empty scrpitlet here breaks all
%>
<tw:tag1>
 <tw:tag2>
  <tw:tag3>
   -
  </tw:tag3>
 </tw:tag2>
</tw:tag1>


///tag1.tag

=<jsp:doBody/>=


///tag2.tag

[<jsp:doBody/>]


///tag3.tag

*<jsp:doBody/>*

Notes
(0001804)
ferg   
04-03-07 13:58   
jsp/102b