<%@ taglib uri="http://www.entplace.com/taglibs/ep" prefix="ep" %> <%@ page import="com.entplace.data.merger.Poll" %> <% int pollno = Integer.parseInt(frameworkPath[frameworkDepth.intValue()+1]); int choice = Integer.parseInt(frameworkPath[frameworkDepth.intValue()+2]); Poll poll = Poll.getPoll(); if (poll.getId() == pollno && choice >= 0) { poll.choose(choice); } %>
POLL RESULTS
 
<%= poll.getQuestion() %>     There are <%= poll.getTotal() %> votes
 
 
<% for (int i = 0; i < 5; i++) { String c = poll.getChoice(i); if (c == null || c.trim().equals("")) { continue; } long total = poll.getTotal(); int n = poll.getN(i); long width = 0; if (total > 0) { width = (long)300 * n / total; } %> <% } %>
<%= c %>: