There was a problem with a Velocity script |
Page | /httpd/prestosports/site-public/WEB-INF/themes/generic/teaminfo-network-monospace-template |
Error | Invocation of method 'includeAgain' in class com.prestosports.render.ContentEngineInvoker threw exception javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NumberFormatException: For input string: "HALVES" at /httpd/prestosports/site-public/WEB-INF/themes/generic/teaminfo-network-monospace-template[line 189, column 15] |
Page source: |
1: <style type="text/css">
2: .monostats { float:left; width:auto; }
3: .monostats .monostats-container * { font-size: 9px; }
4: .monostats .stats-header { font:14px/1 arial; font-weight:900 }
5: div.break {page-break-after:always;margin-bottom:20px;clear:both;}
6: </style>
7:
8: $website.decorate("printer-decorator")
9: $!wiki.su
10:
11: ## PICK UP OPTIONS
12: $website.include("options")
13: #set ($options = $request.getAttribute("options"))
14: #set ($locale = "en_us")
15: #set ($locale = $options.get("locale"))
16: #set ($teamId = $attributes.get("teamId"))
17: #set ($stats = $splits.overall)
18: #set ($pos = "")
19: #if ($sport.enumCode == 0) ## Football
20: #set ($pos = "off")
21: #end
22: #set ($pos = $request.getParameter("pos"))
23:
24:
25: #set ($pageTitle = $page.title)
26: #if ($pageTitle.trim().length() == 0)
27: #set ($season = "")
28: #if ($page.url.matches(".*/\d{4}-\d{2}/.*"))
29: #set ($truncateStr = $page.url.split("/\d{4}-\d{2}/").get(0))
30: #set ($season = $page.url.replace($truncateStr, "").substring(1, 8))
31: #end
32:
33: #set ($gender = "")
34: #if (!$sport.contains("men's"))
35: #if ($page.url.matches(".*/sports/m.*"))
36: #set ($gender = "Men's")
37: #elseif ($page.url.matches(".*/sports/w.*"))
38: #set ($gender = "Women's")
39: #end
40: #end
41:
42: #set ($pageTitle = "${season} ${gender} ${sport} Statistics")
43:
44: #if ($attributes.get("school_name").length() > 0)
45: #set ($pageTitle = "${pageTitle} - ${attributes.get('school_name')}")
46: #end
47: #end
48:
49:
50: <head>
51: <title>$pageTitle</title>
52: </head>
53:
54: <div class="clearfix">
55: <div class="monostats">
56: <div class="align-center">
57: <h1 class="stats-header">$pageTitle</h1>
58:
59: #set($school_name_url = $!attributes.get("school_name"))
60: #set($school_name_url = $tool.esc.url($school_name_url))
61: ## SCHEDULE INFORMATION
62: <div class="schedule-information">
63: $website.include("schedule?teamId=${teamId}&tmpl=schedule-data-monospace-template")
64: </div>
65:
66: </div>
67:
68: <div class="monostats-container">
69: ## Lineup page
70:
71: #set ($restriction = "0")
72: #set ($restriction = $request.getParameter("r"))
73: #set ($view = "")
74: #set ($view = $!request.getParameter("view"))
75:
76: ## Set this for the inner page to pull something out
77:
78: #foreach ($split in $splits)
79:
80: $slpit.key <br />
81:
82: #end
83:
84: $!request.setAttribute("teamStatsConf", $splits.conference)
85: $!request.setAttribute("teamStats", $splits.overall)
86:
87: #if ($sport.enumCode == 2) ## Basketball
88:
89: #set ($sort = $request.getParameter("sort"))
90: #set ($url = "../players?teamId=${attributes.teamId}&sort=$!{sort}&tmpl=stats-bios-monospace-template")
91: $website.includeAgain($url)
92:
93: #elseif ($sport.enumCode == 5) ## Ice hockey
94:
95: ## skaters
96: #set ($url = "../players?teamId=${attributes.teamId}&sort=p&pos=sk&r=${restriction}&tmpl=stats-bios-monospace-template")
97: $website.includeAgain($url)
98:
99: ## goalies
100: #set ($url = "../players?teamId=${attributes.teamId}&sort=gaa&pos=g&r=${restriction}&tmpl=stats-bios-monospace-template")
101: $website.includeAgain($url)
102:
103: #elseif ($sport.enumCode == 4) ## Volleyball
104:
105: ## all players
106: #set ($url = "../players?teamId=${attributes.teamId}&sort=kps&pos=&r=${restriction}&tmpl=stats-bios-monospace-template")
107: $website.includeAgain($url)
108:
109: #elseif ($sport.enumCode == 3) ## soccer
110:
111: ## field players
112: #set ($url = "../players?teamId=${attributes.teamId}&sort=p&pos=fp&r=${restriction}&tmpl=stats-bios-monospace-template")
113: $website.includeAgain($url)
114:
115: ## goalies
116: #set ($url = "../players?teamId=${attributes.teamId}&sort=gaa&pos=g&r=${restriction}&tmpl=stats-bios-monospace-template")
117: $website.includeAgain($url)
118:
119: #elseif ($sport.enumCode == 9) ## field hockey
120:
121: ## field players
122: #set ($url = "../players?teamId=${attributes.teamId}&sort=p&pos=fp&r=${restriction}&tmpl=stats-bios-monospace-template")
123: $website.includeAgain($url)
124:
125: ## goalies
126: #set ($url = "../players?teamId=${attributes.teamId}&sort=gaa&pos=g&r=${restriction}&tmpl=stats-bios-monospace-template")
127: $website.includeAgain($url)
128:
129: #elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse
130:
131: ## field players
132: #set ($url = "../players?teamId=${attributes.teamId}&sort=p&pos=fp&r=${restriction}&tmpl=stats-bios-monospace-template")
133: $website.includeAgain($url)
134:
135: ## goalies
136: #set ($url = "../players?teamId=${attributes.teamId}&sort=ggp&pos=g&r=${restriction}&tmpl=stats-bios-monospace-template")
137: $website.includeAgain($url)
138:
139:
140: #elseif ($sport.enumCode == 0) ## Football
141:
142: ##Passing
143: #set ($url = "../players?teamId=${attributes.teamId}&pos=qb&tmpl=stats-bios-monospace-template&sort=pc&table=passing")
144: $website.includeAgain($url)
145:
146: ##Rushing
147: #set ($url = "../players?teamId=${attributes.teamId}&pos=rb&tmpl=stats-bios-monospace-template&sort=ryd&table=rushing")
148: $website.includeAgain($url)
149:
150: ##Receiving
151: ###set ($url = "../players?teamId=${attributes.teamId}&pos=wr&tmpl=stats-bios-monospace-template&sort=ryd&table=receiving")
152: #set ($url = "../players?teamId=${attributes.teamId}&pos=wr&tmpl=stats-bios-monospace-template&sort=wyd&table=receiving")
153: $website.includeAgain($url)
154:
155: ##Punting
156: #set ($url = "../players?teamId=${attributes.teamId}&pos=p&tmpl=stats-bios-monospace-template&sort=uya&table=punting")
157: $website.includeAgain($url)
158:
159: ##Kicking
160: #set ($url = "../players?teamId=${attributes.teamId}&pos=k&tmpl=stats-bios-monospace-template&sort=xafg&table=kicking")
161: $website.includeAgain($url)
162:
163: ##Returns
164: #set ($url = "../players?teamId=${attributes.teamId}&pos=kr&tmpl=stats-bios-monospace-template&sort=krpr&table=returns")
165: $website.includeAgain($url)
166:
167: ##Scoring
168: #set ($url = "../players?teamId=${attributes.teamId}&pos=pts&tmpl=stats-bios-monospace-template&sort=pts&table=scoring")
169: $website.includeAgain($url)
170:
171: ##Defensive Statistics
172: #set ($url = "../players?teamId=${attributes.teamId}&tmpl=stats-bios-monospace-template&sort=dtu&table=defensive&pos=d")
173: $website.includeAgain($url)
174:
175: #elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## Baseball or Softball
176:
177: ## POS_MINS = "h:ab|p:ip|f:a";
178:
179: ## hitting
180: #set ($url = "../players?teamId=${attributes.teamId}&sort=ab&pos=h&min=par&r=${restriction}&tmpl=stats-bios-monospace-template&cvsort=avg")
181: $website.includeAgain($url)
182:
183: ## pitching
184: #set ($url = "../players?teamId=${attributes.teamId}&sort=ip&pos=p&min=bf&r=${restriction}&tmpl=stats-bios-monospace-template&cvsort=era")
185: $website.includeAgain($url)
186:
187: ## fielding
188: #set ($url = "../players?teamId=${attributes.teamId}&sort=fpct&pos=f&min=a&r=${restriction}&tmpl=stats-bios-monospace-template")
189: $website.includeAgain($url)
190:
191:
192: #else
193: We do not support this sport
194: #end
195:
196: </div> ## monospace container
197: </div> ## monospace
198: </div>
199:
200: $wiki.su
|