Menu

Newbie question

Help
2004-12-08
2012-10-08
  • Deli Dumrul

    Deli Dumrul - 2004-12-08

    Hi,

    I am using Tomcat 4.1.24. I am trying to display some data using request attribute, I don't get any error but i can't display anything.

    I can view the examples in displaytag.war, so i think i installed displaytag correctly.

    here is my code:

    <html>
    <head>
    <title>All records</title>
    </head>
    <body>

    <% out.println("Hello World"); %><br>

    <display:table name="recordList" pagesize="20" requestURI = "" >
    <display:column property="name" title="Name" />
    <display:column property="surname" title="Surname" />
    </display:table>

    </body>
    </html>

     
    • Matt Raible

      Matt Raible - 2004-12-08

      Is "recordList" a collection of objects in some scope with getters and setters for name and surname?

       
    • Deli Dumrul

      Deli Dumrul - 2004-12-09

      Hi
      In my action class i have these:

      Personal[] records = null;

      records = PersonalDaoFactory.create(conn).findAll();
      request.setAttribute("recordList", records);

      records is basically a DTO array

       
    • Deli Dumrul

      Deli Dumrul - 2004-12-10

      Now i am getting nothing found to display..

       

Log in to post a comment.

MongoDB Logo MongoDB