Results 1 to 2 of 2
  1. #1
    manideep.d132 is offline Member
    Join Date
    Aug 2011
    Posts
    10
    Rep Power
    0

    Default To display arraylist values in jsp

    while (rs.next()) {
    int sNo = rs.getInt(1);
    String title = rs.getString(2);
    String author = rs.getString(3);
    System.out.println("S.No " + sNo);
    System.out.println("title " + title);
    System.out.println("author " + author);

    BookVO bookVO = new BookVO();
    bookVO.setId(sNo);
    bookVO.setTitle(title);
    bookVO.setAuthor(author);

    list.add(bookVO);
    }


    <C:FOREACH var="name" items="${names}">
    <C:OUT value="${name}">
    </C:OUT>
    </C:FOREACH>
    Last edited by JosAH; 08-08-2011 at 08:31 PM.

  2. #2
    LongTTH is offline Member
    Join Date
    Mar 2011
    Posts
    11
    Rep Power
    0

Similar Threads

  1. ArrayList find values
    By ralf in forum New To Java
    Replies: 39
    Last Post: 07-06-2011, 11:08 PM
  2. Arraylist display problem
    By drgnfire25 in forum New To Java
    Replies: 1
    Last Post: 02-11-2011, 03:39 AM
  3. How to display WildCard search values
    By peliukasss in forum Lucene
    Replies: 1
    Last Post: 08-25-2010, 02:29 PM
  4. Replies: 27
    Last Post: 08-27-2009, 03:05 PM
  5. trying to set() values of in list of arraylist
    By alvations in forum New To Java
    Replies: 15
    Last Post: 10-13-2008, 09:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •