]> git.argeo.org Git - gpl/argeo-slc.git/blob - server/org.argeo.slc.siteserver/bundles/simple-webapp.war/jsp-tag-osgi-world.jsp
Adapt to OSGi on the server side
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / simple-webapp.war / jsp-tag-osgi-world.jsp
1 <%@ page info="an OSGi JSP page with taglibs" %>
2 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
3
4 <html>
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7 <link rel="stylesheet" href="styles/springsource.css" type="text/css" />
8 <title>Hello OSGi World</title>
9 </head>
10
11 <body>
12 <div id="main_wrapper">
13 <h1>JSP taglibs page</h1>
14
15 <p>This JSP page uses the standard JSTL <a href="http://java.sun.com/jsp/jstl/core">core</a> taglib to display
16 the information about the user request. Since the WAR is deployed as an OSGi bundle, the taglib does not have to
17 be nested inside the WAR and can be deployed, as a stand alone bundle which is then imported.
18
19 <h2>Browser Information</h2>
20 <c:out value="${header['User-Agent']}"/>
21
22 <h2>Header info:</h2>
23
24 <table>
25 <tr>
26 <th>Name</th>
27 <th>Value</th>
28 </tr>
29 <c:forEach var="head" items="${headerValues}">
30 <tr>
31 <td><c:out value="${head.key}"/></td>
32 <c:forEach var="val" items="${head.value}">
33 <td>
34 <c:out value="${val}"/>
35 </td>
36 </c:forEach>
37 </tr>
38 </c:forEach>
39 </table>
40
41
42 <table class="footer">
43 <tr>
44 <td><a href="./">Home</a></td>
45 <td align="right"><img src="./images/springsource-logo.png"/></td>
46 </tr>
47 </table>
48
49 </div>
50
51 </body>
52 </html>