Guest User

Untitled

a guest
Dec 10th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Lets say I have a javascript function that uses DWR and gets a List<String> called strings
  2. Is there a way to to like:
  3. <c:forEach var="stringItem" items="${strings}">
  4. ....something....
  5. </c:forEach>
  6.  
  7. DWRXyzService.someMethod(args, function(result) {
  8. for (var i = 0; i < result.strings.length; ++i) {
  9. var stringItem = result.string[i];
  10. ...something...
  11. }
  12. });
Advertisement
Add Comment
Please, Sign In to add comment