<% final Encoder encoder = ESAPI.encoder(); final List events = (List)request.getAttribute("events"); %> <%! final DateFormat dateTimeFormat = SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT); %> <%@ page import="java.text.DateFormat" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.List" %> <%@ page import="org.owasp.esapi.ESAPI"%> <%@ page import="org.owasp.esapi.Encoder"%> <%@page import="com.insightguru.giraffe.server.utils.TextUtil"%> <%@page import="com.insightguru.giraffe.server.domain.MarketingEvent"%> <%@page import="com.insightguru.giraffe.server.domain.MarketingEventType"%> <%@page import="com.insightguru.giraffe.server.controller.MarketingEventController"%> <%@ include file="../components/contentType.jsp" %> <%@ include file="../components/commonMeta.jsp" %> <%@ include file="../components/commonHead.jsp" %>

Recent and Future Marketing Events

New <% for(MarketingEvent event : events) { %> <% } %>
ID Edit Type Date Company Title Description Link Delete
<%= event.getId() %> Edit <%= event.getType() %> <%= event.getEventDate() == null ? "" : dateTimeFormat.format(event.getEventDate()) %> <%= event.getCompany() == null ? "" : event.getCompany().getSymbol() %> <%= encoder.encodeForHTML(event.getTitle()) %> <%= encoder.encodeForHTML(event.getDescription()) %> <% if(!TextUtil.NullOrEmpty(event.getLink())) { %> <%= encoder.encodeForHTML(event.getLink()) %> <% } %> Delete