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.
|
|
|
|
|
![]() |
||
[SOLVED] <c:forEach> question
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[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! |
|
#2
|
|||
|
|||
|
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....
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#3
|
|||
|
|||
|
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! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] foreach problem -- table of contents script | MikeHopley | PHP Forum | 1 | Apr 4th, 2008 12:51 |
| [SOLVED] Notepad+ question | dhall | Starting Out | 7 | Nov 19th, 2007 00:30 |
| [SOLVED] mysql question | longstand | Databases | 5 | Oct 23rd, 2007 05:11 |
| [SOLVED] quick question | perform300 | Starting Out | 6 | Oct 2nd, 2007 19:02 |