/[projects]/android/PicturePosterService/WebContent/index.jsp
ViewVC logotype

Annotation of /android/PicturePosterService/WebContent/index.jsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 602 - (hide annotations) (download)
Sun Feb 21 20:31:20 2010 UTC (14 years, 3 months ago) by torben
File size: 1084 byte(s)
Very basic picture service
1 torben 602 <%@page contentType="text/html" pageEncoding="UTF-8"%>
2     <%@page import="dk.thoerup.pictureposterservice.*"%>
3     <%@page import="java.util.*"%>
4    
5     <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
6     <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %>
7    
8     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9     "http://www.w3.org/TR/html4/loose.dtd">
10    
11     <c-rt:set var="postings" value="<%=PostingDAO.getAll()%>"/>
12    
13    
14     <html>
15     <head>
16     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
17     <title>GlassFish JSP Page</title>
18     <style>
19     div.post {
20     border-style:solid;
21     border-width:1px;
22     width: 500px;
23     }
24     </style>
25     </head>
26     <body>
27     <h2>Postings</h2>
28     <c-rt:forEach var="post" items="${postings}">
29     <div class="post">
30     <b>${post.title}</b><br>
31     <i>Posted by ${post.author }</i><br>
32     Location: ${post.latitude}, ${post.longitude}<br>
33     <p>${post.note}</p>
34     <img src="PictureServlet?pic=${post.id}" border="0">
35     </div><br><br>
36     </c-rt:forEach>
37     </body>
38     </html>

  ViewVC Help
Powered by ViewVC 1.1.20