Hi Mr. Shin and everyone,

  Hope that all is well.

  I'm writing code for iterating through nested beans but is not clear
to me. This is not part
of the homework, but my own exercise to explore the nested iteration
in Struts.

  I noticed that in the StrutsAdvanced.pdf you have an example in
pages 148 and 149
for iteration through departments and employees of a company. However
it's not clear
to me how everything relates. Maybe having the Form definition and the
dto will help
visualize the setup because I can match the names to what is on the
Nested code.

  Could you please provide the dto and Form attributes set so that
it's more clear how
to set up the code for iterating using JSTL or Nested Tags? Thanks.

  I tried my own example with two classes: a book class which has the
following attributes:
        private long id;
        private String title;
        private String author;
        private String available;

and a bookSection class with the following attributes:
        private List<Book> bookSec = new ArrayList<Book>();
        private Book latestBook;
        private String sectionName = null;

  Then in my Form I define a List of type BookSection:
        private List<BookSection> bookSectionList;

and I set that accordingly after giving values to everything.

  Now my problem is how to write the JSTL or Nested tag for
iterating.
I can't even get the outside part so that I can print the
sectionName.

Thanks in advance for any help.

Best regards,

Ruben



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to