This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes JSTL loop through jQuery array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL loop through jQuery array" Watch "JSTL loop through jQuery array" New topic

JSTL loop through jQuery array

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362

I have a jQuery function that builds an array of hyperlinks that I then need to display out onto screen

The array is built from the following:-

Then in a div in my page I was hoping for something like:-

But the links are simply not appearing, so I'm guessing the JSTL can not see the jQuery thumbnail array.

Any advice would be appriciated.
David Newton

Joined: Sep 29, 2008
Posts: 12617


JSTL is executed entirely on the server side before the client even sees the page.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63350

You might want to read this article to understand how JSP works and to understand why things happen in a different order than you are expecting.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JSTL loop through jQuery array
It's not a secret anymore!