torkolort 0 Newbie Poster

Hi,

My problem is pretty simple, but I'm not sure about the solution. The idea is simply to send a list with an unknown number of java objects from a servlet to a jsp page, and display the objects as checkboxes on the page. The user should then check the appropriate objects and submit. When submitting I want to send the list back to the servlet and do some operations on the objects.

List<MyObject> objects = myService.getList();
request.setAttribute("objects ", objects);
request.getRequestDispatcher("myPage.jsp").forward(request, response);

How do I map this to checkboxes that can change the boolean value for each object and then send them back to the servlet? Is it really that hard as it seems with just using jsp/jstl and servlets?

Thanks