Hi,
one 'cheap' work-around is to comment the tag extra info class
<tag>
<name>enumerate</name>
<tagclass>org.apache.struts.taglib.EnumerateTag</tagclass>
<!--<teiclass>org.apache.struts.taglib.EnumerateTei</teiclass>-->
<bodycontent>JSP</bodycontent>
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
...
due to it seams that IPlanet6.0 has a bug in JSP-compile...
Oliver
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 17. Januar 2001 18:21
An: [EMAIL PROTECTED]
Betreff: JSP-compile-error with IPLANET6.0
Hi,
we use IPLANET6.0 AS/WS and translating the struts example JSP
'registration.jsp' produces a nullpointer in the following code:
public final class EnumerateTei extends TagExtraInfo {
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo(data.getAttributeString("id"),
"java.lang.Object",
true,
VariableInfo.NESTED)
};
}
The parameter 'TagData data' ist null. I believe that happens when IP6.0
compiles the enumerate-tag of the registration.jsp because commenting that
fixes the compile problem:
<struts:enumerate id="subscription" name="user" property="subscriptions">
<tr>
<td align="left">
<struts:htmlProperty name="subscription" property="host"/>
</td>
<td align="left">
<struts:htmlProperty name="subscription" property="username"/>
</td>
<td align="center">
<struts:htmlProperty name="subscription" property="type"/>
</td>
<td align="center">
<app:linkSubscription href="editSubscription.do?action=Delete">
<struts:message key="registration.deleteSubscription"/>
</app:linkSubscription>
<app:linkSubscription href="editSubscription.do?action=Edit">
<struts:message key="registration.editSubscription"/>
</app:linkSubscription>
</td>
</tr>
</struts:enumerate>
Does anybody know why and maybe how to fix ?
Thanks a lot !
Oliver