1 |
torben |
950 |
<%@ page language="java" contentType="text/html; charset=UTF-8" |
2 |
|
|
pageEncoding="UTF-8"%> |
3 |
|
|
|
4 |
|
|
<%@ page import="dk.thoerup.marketstats.AppBean" %> |
5 |
|
|
<%@ page import="dk.thoerup.marketstats.CommentBean" %> |
6 |
|
|
<%@ page import="java.util.List" %> |
7 |
|
|
|
8 |
|
|
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> |
9 |
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> |
10 |
|
|
|
11 |
|
|
<c-rt:set var="app" value="${requestScope.app}"/> |
12 |
|
|
<c-rt:set var="commentList" value="${requestScope.comments}" /> |
13 |
|
|
<c-rt:set var="commentCount" value="<%= ( (List) request.getAttribute("comments")).size() %>" /> |
14 |
|
|
|
15 |
|
|
|
16 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
17 |
|
|
<html> |
18 |
|
|
<head> |
19 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
20 |
|
|
<title>MarketStats: ${app.title}</title> |
21 |
|
|
</head> |
22 |
|
|
<body> |
23 |
|
|
<pre> |
24 |
|
|
<h2>${app.title}</h2> |
25 |
|
|
Ver: ${app.version} ( ${app.versionCode} ) |
26 |
|
|
Ratingcount: ${app.ratingsCount} |
27 |
|
|
Rating: ${app.rating} |
28 |
|
|
Downloads: ${app.downloadsCountText} (${app.downloadsCount}) |
29 |
|
|
|
30 |
|
|
Comments: ${commentCount} |
31 |
|
|
-------------------------------------------------------------------------------------------------------- |
32 |
|
|
<c-rt:forEach var="comment" items="${commentList}"> |
33 |
|
|
User: ${comment.author} |
34 |
|
|
Rating: ${comment.rating } |
35 |
|
|
Time: ${comment.time } |
36 |
|
|
${comment.text } |
37 |
|
|
|
38 |
|
|
</c-rt:forEach> |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
</pre> |
42 |
|
|
</body> |
43 |
|
|
</html> |