When using the "displaytag-1.0-rc1.jar" retrieved from the iBiblio Maven repository, I get this error:
/Results.jsp(3): Error in using tag library uri='http://displaytag.sf.net/' prefix='display': For tag 'table', cannot load extra info class 'org.displaytag.tags.TableTagExtraInfo'
probably occurred due to an error in /Results.jsp line 3:
<%@ taglib uri="http://displaytag.sf.net/" prefix="display" %>
Changing the JSP so that it attempts to simply access the static 'class' member of the TableTagExtraInfo class gets me an error "class file has wrong version 48.0, should be 47.0". So... I decided to just try rebuilding the JAR from SourceForge CVS. When I put that version of the JAR in place, the above error disappears, but now I get:
weblogic.servlet.jsp.JspException: (line 43): for tag 'table', property 'name' of tag handler class 'org.displaytag.tags.TableTag', the value must be a runtime expression "<%=...%>", since we cannot do an automatic conversion from "sessionScope.REGISTRATIONS" to type 'java.lang.Object' and there is no custom property editor for that type
Now, this just seems ridiculous, as what conversion would need to be made to "java.lang.Object"? Also, I thought that runtime expressions could only be Strings.
Well, believe it or not, using a Scriptlet to create a String whose value is "sessionScope.REGISTRATIONS" and then inlining that using an RT-expression, the thing just worked!
<% String freakishWeblogic61Hack = "sessionScope.REGISTRATIONS"; %>
<display:table name="<%= freakishWeblogic61Hack %>" export="true" id="row" requestURI="" cellpadding="5" cellspacing="0">
At this point, I'm sending this out in part just to get a solution into the google-net in case anyone else comes across the same problem. But also, it just seems like a fragile little hack, and I'm wondering if anyone knows anything more about it.
Is anyone using displaytag with Weblogic 6.1? Thanks for any experiences, or even just ideas about how to debug it further.
Thanks, Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place."
- Carlos Santana