Hi:

 

I'm using the "nested tables" feature of the display tag library.  I was using version 1.0b1 without problems, but today I changed my project to use version 1.0b2.  Everything worked fine in all the reports with single tables, but in the nested one I got the following exception:

 

[ServletException in:/pages/consulta/despliegueConsultaNotasCredito.jsp]

An error occurred between lines: 38 and 40 in the jsp file: /pages/consulta/despliegueConsultaNotasCredito.jsp

Generated servlet error: C:\java\tomcat-4.0.6mv\work\Standalone\localhost\declaIntranet\

       pages\consulta\despliegueConsultaNotasCredito$jsp.java:487:

       Variable 'mediaType' is already defined in this method.

       org.displaytag.export.MediaTypeEnum mediaType = null;

 

Initially I thought it might have been a problem with the TLD I was using but after testing the application with both of the supplied TLDs, I discarded that option.  Then I tried using today's snapshot build (displaytag-1.0-b3-SNAPSHOT mar-30) but got the same results in every test.

 

Finally, I generated the java class for the JSP page using the 1.0b1 version, and then I did the same using version 1.0b2 and checked for differences on the code.  The only differences were the lines referring to the "mediaType" variable.  It seems to me that the new version is generating this variable twice for the page.  Can anyone point me to the source (class name and package) where I can fix this ?.  Or if anyone has already fixed this, can you please send me the patch ? (or point me to where can I download it).

 

Thanks in advance.

 

 

Marco Vaca

Reply via email to