Mantis - Resin
Viewing Issue Advanced Details
2904 minor always 09-04-08 11:11 09-18-08 17:13
ferg  
ferg  
urgent  
closed 3.1.6  
fixed  
none    
none 3.1.8  
0002904: jsp tag file issue
(rep by Herve Prisciandaro)

I found a bug in the 3.1.7 and 3.2.0 version of resin. I try to invoke a fragment from a tag file but the java generated by resin doesn't compile.

I have created a tag file:

<%@ attribute name="list" required="true" type="java.util.List" %>
<%@ attribute name="name" required="true" %>
<%@ attribute name="itemDisplayName" required="true" fragment="true" %>
<%@ attribute name="itemValue" required="true" fragment="true" %>
...
<jsp:invoke fragment="itemValue" var="loopItemValue" />

I have the following error:
/WEB-INF/tags/widgets/customselect.tag:28: cannot find symbol
symbol : variable _jsp_parentContext
location: class _jsp._web_22dinf._tags._widgets._customselect__tag._CauchoFragment
         _jsp_parentContext.setAttribute("item", pageContext.getAttribute("item"));
         ^
I have attached the generated java and you can see (line 341) the variable '_jsp_parentContext' is not declared.

(see mail 2008-09-04 for attachment)


Notes
(0003466)
ferg   
09-18-08 17:13   
jsp/103c