Joe, Dumb question for you: Is the taglib line in your displaytag using jsp really <%@ taglib uri="http://displaytag.sf.net/" prefix="display" %>
Shouldn't it be something with a tld on it or be a local reference to a TLD defined in your webapp's web.xml file? For an old site using 1.0-rc1, I have a web.xml taglib entry: <taglib-uri>/tags/display</taglib-uri> <taglib-location>/WEB-INF/displaytag.tld</taglib-location> </taglib> And JSP usage: <%@ taglib uri="/tags/display" prefix="display" %> Regards, David -----Original Message----- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 12:04 AM To: Struts Users Mailing List Subject: [OT] Display Tag Library problems with Weblogic 6.1 I'm trying for the first time to deploy the "displaytag" library to a Weblogic 6 server, and I'm getting an annoying error which I was not getting while developing locally under Tomcat 4. Since I know a lot of Struts users use displaytag, and since I'm not subscribed to that list, I thought I'd see if anyone had any ideas. 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]