root / trunk / web / status.jsp @ 9
History | View | Annotate | Download (825 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 | <%@page import="org.lidar.api.LIDAR"%> |
||
5 | <% |
||
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 | Locked: <strong><%= LIDAR.locked %></strong><br/><br/> |
||
13 | <% |
||
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 | Motion port: <strong><%= c.getString("devices.motion.port") %></strong><br/> |