I am developing a school project which is a point of sale system. It is geared at resturants. "Managers" can created a menu which consists of as many categories nested as deeply as they want and the end categories will contain items. I have this tree of categories already created in java. It is essentially the same as a computer's directory. I plan to have the tree populated from the database when they want to view their menu. It is a web application so I need to represent this tree as html nested list. I have been using JSP/JSTL to build the pages from the data objects so I am hoping to pass the tree to the JSP once it is built and then somehow traverse it and insert the correct html or even write code in the Java to write a giant html string and just serve up that.
Im having trouble wrapping my head around this as I am quite new to jsp/jstl and am looking for suggestions on the best way to do this.