Message:

   The following issue has been resolved as WON'T FIX.

   Resolver: fabrizio giustina
       Date: Sat, 13 Nov 2004 8:28 AM

Since the example tag are anyway needed for the generated documentation, I 
ultimately decided to leave the tlds intact and to add the instructions on how 
make them work with JRun in the appserver compatibility section in displaytag 
FAQ.

this is the FAQ entry:
====
question:

The <example> elements in the displaytag-el.tld and displaytag-12.tld are 
invalid according to JRun4. When adding displaytag.jar to a JRun4 web 
application I get the following stacktrace: 
jrun.jsp.compiler.JRunTagLibraryInfo$InvalidTLDElementException: The tag 
example on line 244 is not a valid TLD element at 
jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.startElement(JRunTagLibraryInfo.java:613)


answer:

Again, this appears to be a JRun fault.

The <example> elements are absolutely valid according to the sun dtd 
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd but JRun doesn't accept them. 
A bug report has already been submitted to Macromedia hoping they will fix this.

In the meanwhile, you have two available solutions to make displaytag work 
pacefully with JRun:

* If you don't need to use the EL version, simply delete the displaytag-el.tld 
and displaytag-12.tld files from displaytag.jar and use the 1.1 version. This 
one works without problems.

* If you need the EL version, extract displaytag-el.tld from the jar and remove 
all the <example> tags. Replace the original tld in the jar with this modified 
one.

We are sorry for this extra step needed with JRun, but at the moment we decided 
to not to remove the example tags in the main tld since they are needed for the 
generated documentation.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/DISPL-91

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DISPL-91
    Summary: tld doesn't work in JRun4 (invalid example tag)
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: WON'T FIX

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: DisplayTag
 Components: 
             Container Compability
   Fix Fors:
             1.0 RC2
   Versions:
             1.0 RC1

   Assignee: fabrizio giustina
   Reporter: fabrizio giustina

    Created: Tue, 2 Nov 2004 4:20 PM
    Updated: Sat, 13 Nov 2004 8:28 AM

Description:
====
imported from sf tracker
id 912023 
submitted by greg copeland - gcopeland
http://sourceforge.net/support/tracker.php?aid=912023 
====

 The <example> elements in the displaytag-el.tld are
invalid per Sun's tag library DTD. Below is a error
trace resulting from adding displaytag.jar to a JRun4
web application -


[2]jrun.jsp.compiler.JRunTagLibraryInfo$InvalidTLDElementException:
The tag example on line 244 is n
ot a valid TLD element
at
jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.startElement(JRunTagLibraryInfo.java:613)
at
jrunx.util.SAXReflectionHandler.startElement(SAXReflectionHandler.java:24)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:333)


===

Date: 2004-03-11 21:28
Sender: fgiust

The <example> elements ARE valid according to the sun dtd.
All the dtds (1.1, 1.2, 1.2 EL) validates correctly.
Maybe there was an error (in the element order) in the past?

I'm closing this bug, since EL support has never been released 
and appears to be working now.


===

Date: 2004-10-26 04:16
Sender: ckevinhill

Still an issue for me for all the tld descriptors (11, 12, el)
with jrun4.

===


Date: 2004-10-28 18:39
Sender: gcopeland

According to the displaytag team, their tld conforms to
Sun's DTD; so they 
refused to make any changes.  I unjarred their distro,
manually removed all the 
<example> elements from their displaytag-el.tld, and then
rejarred the files.  
That fixed the problem for me.  


===

Date: 2004-11-02 14:01
Sender: fgiust

from http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd:

<!ELEMENT tag (name, tag-class, tei-class?, body-content?,
display-name?, small-icon?, large-icon?, description?,
variable*, attribute*, example?) >

which version of displaytag has this problem on jrun?


===

Date: 2004-11-02 16:51
Sender: gcopeland

from http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd:

<!ELEMENT example (#PCDATA) >

from displaytag-1.0-rc1.zip:

<example> <![CDATA[
&lt;display:table name="someList" export="true" id="row" 
requestURI="MyAction.do">
  &lt;display:column sortable="true" title="ID"> &lt;c:out 
value="${row.id}"/> &lt;/display:column>
  &lt;display:column property="email" autolink="true"/>
  &lt;display:column property="description" title="Comments"/>
&lt;/display:table>
]]> </example>

Two things could be causing the fault with JRun:

- You can't put CDATA in a location where PCDATA is 
expected

or 

- You can put CDATA in a location where PCDATA is expected 
but you can't leave characters such as the "<" and the "&" 
unescaped (because the XML parser faults on an invalid 
entity reference)

For me it's a moot point because I no longer use displaytag, 
but I hope this might help other users.





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to