Project

General

Profile

Statistics
| Revision:

root / trunk / web / status.jsp @ 13

History | View | Annotate | Download (898 Bytes)

1 9 andrej.cim
<%@page import="org.lidar.Config"%>
2
<%@page import="org.apache.commons.configuration.XMLConfiguration"%>
3
<%@page import="net.sf.jpam.Pam"%>
4 10 andrej.cim
<%@page import="org.lidar.api.Management"%>
5 9 andrej.cim
<%
6
    if(session.getAttribute("authenticated") == null ||
7
       Boolean.parseBoolean(session.getAttribute("authenticated").toString()) == false){
8
        response.sendRedirect("login.jsp");
9
    }
10
%>
11
Authenticated as: <b><%= session.getAttribute("username") %></b> - <a href="logout.jsp">Logout</a><br/>
12 10 andrej.cim
Locked: <strong><%= Management.locked %></strong><br/><br/>
13 9 andrej.cim
<%
14
    XMLConfiguration c = Config.getConfiguration();
15
%>
16
Laser port: <strong><%= c.getString("devices.laser.port") %></strong><br/>
17
Sensor port: <strong><%= c.getString("devices.sensor.port") %></strong><br/>
18 11 andrej.cim
Motion port: <strong><%= c.getString("devices.motion.port") %></strong><br/>
19
<script type="text/javascript">
20
    alert('status');
21
</script>