File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Passing a collection in request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing a collection in request" Watch "Passing a collection in request" New topic
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: 60991
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing a collection in request