Hi, This is main part of my result.jsp. I have a problem to display the results from arrayList. I wanted to do it by while loop. Please help.
BR Rafal <% ArrayList arraylist = (ArrayList)session.getAttribute("arraylist"); if(arraylist == null){ arraylist = new ArrayList(); session.setAttribute("arraylist",arraylist); } String firstName = request.getParameter("firstName"); String surname = request.getParameter("surname"); String sex = request.getParameter("sex"); String countryType = request.getParameter("countryType"); Testapplication.Person person1 = new Testapplication.Person(); person1.setFirstName(firstName); person1.setSurname(surname); person1.setSex(sex); person1.setCountryType(countryType); %> <% ListIterator li = arraylist.listIterator(); while(li.hasNext()){%> <table border="1"> <tr> <td>${arraylist.firstName}</td> <td>${arraylist.surname}</td> <td>${arraylist.sex}</td> <td>${arraylist.countryType}</td> </tr> </table> <%}%> ---------------------------------------------------- PS. Mam da Ciebie prezent na święta :) http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Ftaniokonkurs.html&sid=923 -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en