1 | <%-- |
---|
2 | Copyright (C) 2011 Nicklas Nordborg |
---|
3 | |
---|
4 | This file is part of the Example Code Package for BASE. |
---|
5 | Available at http://baseplugins.thep.lu.se/ |
---|
6 | BASE main site: http://base.thep.lu.se/ |
---|
7 | |
---|
8 | This is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU General Public License |
---|
10 | as published by the Free Software Foundation; either version 3 |
---|
11 | of the License, or (at your option) any later version. |
---|
12 | |
---|
13 | The software is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with BASE. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | --%> |
---|
21 | <%@ page |
---|
22 | pageEncoding="UTF-8" |
---|
23 | session="false" |
---|
24 | import="net.sf.basedb.core.User" |
---|
25 | import="net.sf.basedb.clients.web.util.HTML" |
---|
26 | import="net.sf.basedb.examples.extensions.xjsp.HelloXJspWorld" |
---|
27 | %> |
---|
28 | <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
---|
29 | <% |
---|
30 | final HelloXJspWorld hello = new HelloXJspWorld(pageContext); |
---|
31 | final String ID = hello.getSessionId(); |
---|
32 | final User current = hello.getLoggedInUser(); |
---|
33 | %> |
---|
34 | <base:page type="popup" title="Hello X-JSP world"> |
---|
35 | <base:head /> |
---|
36 | <base:body> |
---|
37 | <h1>Hello <%=HTML.encodeTags(current.getName())%></h1> |
---|
38 | <div class="content bottomborder"> |
---|
39 | <table class="fullform"> |
---|
40 | <tr> |
---|
41 | <th>Session ID</th> |
---|
42 | <td><%=ID%></td> |
---|
43 | </tr> |
---|
44 | <tr> |
---|
45 | <th>Login</th> |
---|
46 | <td><%=HTML.encodeTags(current.getLogin())%></td> |
---|
47 | </tr> |
---|
48 | <tr> |
---|
49 | <th>Email</th> |
---|
50 | <td><%=HTML.niceFormat(current.getEmail())%></td> |
---|
51 | </tr> |
---|
52 | <tr class="dynamic"> |
---|
53 | <th></th> |
---|
54 | <td> |
---|
55 | <div class="messagecontainer note"> |
---|
56 | Produced with the XJSP compiler. |
---|
57 | </div> |
---|
58 | </td> |
---|
59 | </tr> |
---|
60 | </table> |
---|
61 | </div> |
---|
62 | |
---|
63 | <base:buttongroup subclass="dialogbuttons"> |
---|
64 | <base:button onclick="window.close()" title="Close" /> |
---|
65 | </base:buttongroup> |
---|
66 | </base:body> |
---|
67 | </base:page> |
---|
68 | |
---|