ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Mohan Rao Sv wrote:<s:iterator value="%{menulistlist}" var="menulist">
<tr><td class="menu" id="<s:property value="%{menuId}"/>"><s:property value="%{submenuTitle}"/></td></tr>
</s:iterator>
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Joe Ess wrote:
What you should probably have is a list of menu items and each menu item having a list of sub-menus. When you iterate through the menu lists, use the second iterator to invoke the getter for the sub-menu list.
Sachin Negi wrote:
now i am getting the submenus...but the problem is that i am getting all the submenuTitles under every menuTitle.