Skip to content

Instantly share code, notes, and snippets.

@ejknapp
Created May 11, 2013 20:45
Show Gist options
  • Save ejknapp/5561379 to your computer and use it in GitHub Desktop.
Save ejknapp/5561379 to your computer and use it in GitHub Desktop.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ page language="java" contentType="application/json; charset=UTF-8" pageEncoding="UTF-8"%>[
<c:forEach var="employee" items="${jsonSearchResults.foundEmployeeList}" varStatus="status"> {
"id" : "${employee.id}",
"firstName" : "${employee.firstName}",
"lastName" : "${employee.lastName}"
}<c:choose><c:when test="${status.last}"></c:when><c:otherwise>,</c:otherwise></c:choose>
</c:forEach>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment