[SOLVED] <c:forEach> question

This is a discussion on "[SOLVED] <c:forEach> question" within the JavaScript Forum section. This forum, and the thread "[SOLVED] <c:forEach> question are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Dec 15th, 2007, 22:11
Junior Member
Join Date: Oct 2007
Location: Holland
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] <c:forEach> question

hi all,

I am iterating through a few objects using jsp in the following way:

<c:forEach items="${movie.actor}" var="actor">
Name: ${actor.name}
Popularity: ${actor.popularity}
</c:forEach>

However, I'd like to sort the actors by popularity and then display their info in a specific way (based on popularity).

Can you tell me how I could do that.
Shall I use .jsp or rather transfer control to a JavaScript function or do I have to implement this logic on the servlet side.


Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 16th, 2007, 09:11
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <c:forEach> question

I would do this server side with PHP or ASP. Server-side languages are much better for this and a server usually has more processing power then a client machine, making it the obvious choice for sorting algorithms....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 16th, 2007, 17:26
Junior Member
Join Date: Oct 2007
Location: Holland
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <c:forEach> question

yeah, it seems that there is no straightforward way to do it with jsp/js

I'll have to tweak the application logic on the server.

thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] foreach problem -- table of contents script MikeHopley PHP Forum 1 Apr 4th, 2008 11:51
[SOLVED] Notepad+ question dhall Starting Out 7 Nov 18th, 2007 23:30
[SOLVED] mysql question longstand Databases 5 Oct 23rd, 2007 04:11
[SOLVED] quick question perform300 Starting Out 6 Oct 2nd, 2007 18:02


All times are GMT. The time now is 19:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42