| Author |
Passing a collection in request
|
Bhavik Patel
Ranch Hand
Joined: Jul 12, 2004
Posts: 155
|
|
|
Hiii...I have one jsp page which retrieves Images from the database and displays on the JSP page.All images have imageID also ..i m retrieving that also from database.I want to put a Up And Down buttons which can shuffle the images...Means if i click on Up button the first image it should go at the end and the second comes first ,third comes second and so on...I was thinking to pass the all images ID in an array or collection with appropriate order to the same page and then display the images in that order according to received array....How to accomplish this in JSP/JSTL...Any other suggestion will be helpful too...
|
SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
|
Not sure what you are asking. Are you wanting to know how to simply iterate over a list or array passed to the page? Or how to shuffle their order around once the images are loaded?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bhavik Patel
Ranch Hand
Joined: Jul 12, 2004
Posts: 155
|
|
|
I want to shuffle the images once they are loaded .I will have two buttons UP and Down so it will shuffle the images in that manner...
|
 |
Bhavik Patel
Ranch Hand
Joined: Jul 12, 2004
Posts: 155
|
|
how to pass the Array in request like is it possible xyz.jsp?array=${arr} where arr is array of integers
|
 |
 |
|
|
subject: Passing a collection in request
|
|
|