<% //******************************************************************** // Written By: Kris // Date: 2 September 2005 Updated: 9 March 2010 // Member: antm.jsp // Description: JSP which collects ANTM Ratings in a form // by calling a JavaBean which retrieves the // form presentation data from a database. // // Note: This code includes some extra DIVs in order // to make the presentation more easily re-styled, // ala csszengarden.com. //******************************************************************** %> <% //-------------------------------------------------- // Import //-------------------------------------------------- %> <%@ page import="java.io.* ,java.sql.* ,java.util.* ,antm_jsp.Episode01 ,antm_jsp.Model01"%> <% //-------------------------------------------------- // Specify Taglibs //-------------------------------------------------- %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <% //-------------------------------------------------- // Error Page // BUILD A STANDARD ANTM ERROR PAGE!!! // < % @ page errorPage="kread_errorPage.jsp" % > //-------------------------------------------------- %> <% //-------------------------------------------------- // JavaBeans // When ANTMBean01.java changes, you may have to delete the session // cookie in your browser which may still contain the previous version. //-------------------------------------------------- %> ANTM

Cycle 14 - Back To Normal

Cycle 14 starts on Wednesday, March 10th, 2010. The premier will be another long one, so check your VCR. I've watched the contestant interviews several times on cwtv.com. The girls are definitely different when they are animated and speaking than the impression you get from their still photo. Even their looks are different. It's definitely gonna be a challenge to remember who is who when I put in my pre-season ratings.

Keep an eye on cwtv.com for the models' portfolios and more.

I Am Not A Robot - NEW NEW NEW! PLEASE READ!!!

Several automated web "robots" have recently started posted advertising junk on this page. I am adding a new field, "I Am Not A Robot", for you to prove you are human in order to foil these evil webbots. In this field, please enter the digit (three) plus whatever you entered for your name. For example, if your name is "Richard", please enter "3Richard".

Enter Rankings

Choose the cycle and episode you wish to rank. If you wish to rank another episode, select a new one from the drop-down list, then press the "Change Cycle" or "Change Episode" button. Rank the remaining models for the selected cycle/episode. Number one is your favorite, number two is your second favorite, etc. Use each rank exactly ONCE - there are no ties! Be sure to say who you are, and enter your comments about the episode. When you are finished, click on the button to "Post My Ratings".

<% //-------------------------------------------------- // Call ANTMBean01 to retrieve list of Cycles which // are open to accept ratings. There should be // only one. Put the info into pageContext so // that it can be accessed by JSTL. // // Note: replaced with direct access by JSTL tag. //-------------------------------------------------- //List openCyclesList = ANTMBean01.getOpenCycles(); //pageContext.setAttribute("openCyclesList", openCyclesList); %> <% //-------------------------------------------------- // Loop through list and display each cycle as // an item in a selection list form field. //-------------------------------------------------- %>
<% //-------------------------------------------------- // Call ANTMBean01 to retrieve list of Episodes // which have aired for this cycle. Put the info // into pageContext so that it can be accessed // by JSTL. // // Note: replaced with direct access by JSTL tag. //-------------------------------------------------- //List episodesAiredList = ANTMBean01.getEpisodesAired(ANTMBean01.getSelectedRatingCycle()); //pageContext.setAttribute("episodesAiredList", episodesAiredList); %> <% //-------------------------------------------------- // Loop through list and display each episode as // an item in a selection list form field. //-------------------------------------------------- %>
<% //-------------------------------------------------- // Call ANTMBean01 to retrieve information about // this episode. Put the info into pageContext so // that it can be accessed by JSTL. // // Note: replaced with direct access by JSTL tag. //-------------------------------------------------- //Episode01 episode = ANTMBean01.getEpisodeInfo(ANTMBean01.getSelectedRatingCycle() // ,ANTMBean01.getSelectedRatingEpisode()); //pageContext.setAttribute("episode", episode); %> <% //-------------------------------------------------- // If found, display episode information. //-------------------------------------------------- %> <% // Display Cycle & Episode %>

Cycle    

<% // Display Air Date %>

Air Date:

This episode has not yet aired.

Air Date:

<% // Display Episode Description %>

Description:

Cannot rank models for an unaired episode.

Description:

  (enter the digit three, plus your name again)

* Required Field

<% //-------------------------------------------------- // Call ANTMBean01 to retrieve list of models for // this cycle. Put the info into pageContext so // that it can be accessed by JSTL. // // Note: replaced with direct access by JSTL tag. //-------------------------------------------------- //List modelsList = ANTMBean01.getModels(ANTMBean01.getSelectedRatingCycle()); //pageContext.setAttribute("modelsList", modelsList); %> <% //-------------------------------------------------- // Loop through and display models. // // If no models found, write row w/a message & some // debugging information. // // Note: There should always be models to display. // It should not be possible to choose to // rate a cycle/episode which has no models. //-------------------------------------------------- %> <% // There are no models to display. %>

There are no models to display.

<% // Loop through and display each model. %> <% // Close out previous row (if any), and start new row. %>
<% // Display the current model in a new div. %>
" width="80" height="100"> " width="80" height="100"> <% // Display model's name. %>
<% // Display selection list form field of ranking options. %> <% // Close out the div for this model. %>
<% // Update count of models displayed so far in this row. %> <% //-------------------------------------------------- // Close the row for the list of models. // If the list was empty, there is no row to close. //-------------------------------------------------- %>