I have a list which contains menu items. I have to read this list recursively to add UL and Li tages for parents and childs. So i have added a java function in my JSP to create code recursively. But i am getting some problem and i feel its not the right approach. Can you please suggest me if there is any better approach for this.