This problem has already been reported using WebLogic.
It's related to the <type> definitions in displaytag-tld and I still haven't found a 
way to make it working for all the servers: someone always requires a setter with a 
String, others (weblogic, at the moment) need a setter which takes the same type 
defined in the tld.
 
At the moment you can:
- use the 1.1 version of the tld
- edit the 1.2 tld removing all the <type> tag
 
Please report which appserver are you using and the result of these suggested 
solutions. I will open a bug in sf bugtracker for this problem.
 
fabrizio
 
 

From: [EMAIL PROTECTED] on behalf of krishna kumar
Sent: Thu 18/03/2004 13.42
To: [EMAIL PROTECTED]
Subject: [displaytag-user] Problems with display tag



Hi,
I am trying to use the display tag but encountering
some problems.
I am using 1.0.b2 version of displaytag.jar and
displaytag.tld.

here is my code:
----------------
<%@ page import="Person"%>
<%@ taglib uri="/WEB-INF/displaytag.tld"
prefix="display"%>
<% ArrayList test = new ArrayList(); %>
<%
test.add( new Person("1", "aaa", "[EMAIL PROTECTED]", "S"));
test.add( new Person("2", "aaa", "[EMAIL PROTECTED]", "S"));
test.add( new Person("3", "aaa", "[EMAIL PROTECTED]", "S"));
test.add( new Person("4", "aaa", "[EMAIL PROTECTED]", "S"));
%>



<% request.setAttribute( "test", test ); %>
<display:table name="test" sort="list" pagesize="8">
  <display:column property="id" title="ID" />
  <display:column property="name" />
  <display:column property="email" />
  <display:column property="status" />
</display:table>



here are the errors:
--------------------
Parsing of JSP File '/test2.jsp' failed:
--------------------------------------------------------------------------------
 /test2.jsp(2): Error in using tag library
uri='/WEB-INF/displaytag.tld' prefix='display': type
mismatch for property 'export', for Tag class
'org.displaytag.tags.TableTag': tld says boolean,
actual java.lang.String
probably occurred due to an error in /test2.jsp line
2:
<%@ taglib uri="/WEB-INF/displaytag.tld"
prefix="display"%>
--------------------------------------------------------------------------------

I dont know whether this is happening due to the beta
versions of the jar and tld.
In this regard can you please send me the working
versions of displaytag.jar and displaytag.tld.


Thanks and Regards,
Krishna



<<winmail.dat>>

Reply via email to