permaculture playing cards*
The moose likes Struts and the fly likes Double Iteration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Double Iteration" Watch "Double Iteration" New topic
Author

Double Iteration

Pranjal Gaur
Greenhorn

Joined: Mar 20, 2012
Posts: 2
Hi,

In my application, I have a Form(AppSubListForm) which contains a list element : AppSubBeanList. This is basically a list of beans(AppSubBean). Lets say this bean has a property AppName. Now to iterate and get the names of different beans i am using the following code in my JSP :



Now, if i want to add another element linkBeanList, which is again a list of beans(LinkBean) and I want to fetch the property of the bean (LinkName) what should I do..?
I am using this code:




The above code gives me an error in my JSP page : Cannot find bean appSubBeanList in any scope'


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61456
    
  67

"nested" is not a standard JSP tag library. If you are using a framework, we need to know which one.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Pranjal Gaur
Greenhorn

Joined: Mar 20, 2012
Posts: 2
I am using struts...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61456
    
  67

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
 
 
subject: Double Iteration