I am trying to convert my application from Weblogic 8.1 to 9.0 and am
having some issues with the display tag part.   I am able to run the
example below with displaytag 1.1 on tomcat 5.5 but on Weblogic 9.0 it
is not recognizing the contents of my list.  Am I missing something that
is obvious to anyone?   I will eventually convert to native jsp 2.0 but
in the meantime I just want to run in compatibility mode.  All of my
other JSTL tags seem to run fine.  The problem is that the list in
thec:forEach is displayed correctly however in displaytag I get an error
that the list is empty

I am sure it is something obvious but not to me.  Thanks for the help.

The web.xml header is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd";>

Here is the jsp code.

<%@ page language="java" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el"; %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="displaytag" uri="http://displaytag.sf.net/el"; %>
<table width="100%" border="0" cellpadding="0" cellspacing="1">
  <c:set var="list" value="${initForm.items}" />
  <tr>
    <td>
      <html:form action="/processHome">
        <table width="100%" border="0" cellpadding="0" cellspacing="1"
class="Outertablebg">
          <tr>
            <td width="509" align="left" valign="top" colspan="2"
class="row1">
              <b>Display Tag Test</b>
            </td>
          </tr>
        </table>
        <table>
          <c:forEach var="row" items="${list}">
            <tr>
              <td>
                Name
                <c:out value="${row.name}" />
              </td>
              <td>
                Title
                <c:out value="${row.title}" />
              </td>
            </tr>
          </c:forEach>
        </table>
        <table>
          <tr>
            <td>
              Simple table with el display tag with el brackets
            </td>
          </tr>
        </table>
        <displaytag:table name="${list}" />
        <table>
          <tr>
            <td>
              Complex table with el display tag with el brackets
            </td>
          </tr>
        </table>
        <displaytag:table name="${list}" export="true" uid="row"
sort="list" excludedParams="*"
requestURI="/pricing/processPricingDataSummary.do?actionType=sort"
pagesize="15">
          <displaytag:column media="all" sortable="true">
            <c:out value="${row.name}" />
          </displaytag:column>
          <displaytag:column media="all" sortable="true">
            <c:out value="${row.title}" />
          </displaytag:column>
        </displaytag:table>
      </html:form>
    </td>
  </tr>
</table>


Scott D. Ryan
Senior Java Developer/Architect
Aurora Loan Services
10350 Park Meadows Drive
Littleton, Co. 80124
Office: (720) 945-5328
Cell:    (303) 263-3044
[EMAIL PROTECTED]


------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named. If you are not the intended recipient of this 
message, you are hereby notified that any review, dissemination, distribution 
or copying of this message is strictly prohibited. This communication is for 
information purposes only and should not be regarded as an offer to sell or as 
a solicitation of an offer to buy any financial product, an official 
confirmation of any transaction, or as an official statement of Aurora Loan 
Services. Email transmission cannot be guaranteed to be secure or error-free. 
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such. All information is subject to change 
without notice.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to