• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

don't understand "forEach" tag's attribute "items"

 
Charles Roos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working with a jspfile which outputs data to web page, but i don't understand were the data is magically taken.
The code is such:




Where is "pagingHolder.myQueryResults" defined? It seems to be a dataset, but i don't understand where is the location where this dataset is filled?
The JSP-code as you see don't import any "pagingHolder" module. Maybe in some kind of xml-file there is a connection that says that global variable "pagingHolder" refers to a Java class?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles Roos wrote:


JSTL_core ? from which tld are you getting it?

Coming to your question : http://docs.oracle.com/javaee/5/tutorial/doc/bnakh.html (look for Iterator Tags)
 
Charles Roos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:
Charles Roos wrote:
(look for Iterator Tags)


I looked, it looks like this there:



It does not explain where is defined thing called "sessionScope.cart.items" and how it is filled with data.
I think i better go through entire J2EE tutorial to get answer to myself.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is most likely established by the page controller.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic