Emit flexible URLs
Always maintain HttpSessions
To give an example of typical JSTL syntax, here are some JSP snippets which use the core, format, and function parts of JSTL:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> ... <c:forEach var="restaurant" items="${itemsForListing}" varStatus="index"> <tr class="row_highlight"> <td title="Line Number">${index.count}</td> <td>${restaurant.name}</td> <td align="center">${restaurant.location}</td> <td>${restaurant.price}</td> <td align="center">${restaurant.comment}</td> </tr> </c:forEach> ... System Properties (${fn:length(systemProperties)}) <c:forEach var="entry" items="${systemProperties}"> <b>${entry.key}</b> = ${entry.value} </c:forEach> <jsp:useBean id="now" class="java.util.Date" /> Copyright <fmt:formatDate value="${now}" pattern="yyyy" />