| Author |
don't understand "forEach" tag's attribute "items"
|
Charles Roos
Greenhorn
Joined: Dec 14, 2012
Posts: 5
|
|
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
Joined: Jan 28, 2008
Posts: 5575
|
|
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
Joined: Dec 14, 2012
Posts: 5
|
|
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
Joined: Jan 10, 2002
Posts: 56207
|
|
|
It is most likely established by the page controller.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: don't understand "forEach" tag's attribute "items"
|
|
|