source: apps/routerconsole/jsp/xhr1.jsi @ b8437cd

Last change on this file since b8437cd was b8437cd, checked in by zzz <zzz@…>, 2 years ago

Console: Catch ISE in get/setAttribute() (ticket #1529)

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<%@page import="net.i2p.router.web.helpers.SummaryHelper" %>
2<%
3/*
4 * Note:
5 * This is included on every refresh, so keep whitespace etc. to a minimum.
6 */
7%>
8<jsp:useBean class="net.i2p.router.web.helpers.SummaryHelper" id="helper" scope="request" />
9<jsp:setProperty name="helper" property="contextId" value="<%=i2pcontextId%>" />
10<jsp:setProperty name="helper" property="action" value="<%=request.getParameter(\"action\")%>" />
11<jsp:setProperty name="helper" property="updateNonce" value="<%=request.getParameter(\"updateNonce\")%>" />
12<jsp:setProperty name="helper" property="consoleNonce" value="<%=request.getParameter(\"consoleNonce\")%>" />
13<%
14    String reqURI = request.getRequestURI();
15    if (reqURI.contains("/xhr1"))
16        reqURI = request.getParameter("requestURI");
17    helper.setRequestURI(reqURI);
18%>
19<% helper.storeWriter(out); %>
20<% helper.storeNewsHelper(newshelper); %>
21<%
22/*
23 * The following is required for the reseed button to work, although we probably
24 * only need the reseedNonce property.
25 */
26%>
27<jsp:useBean class="net.i2p.router.web.helpers.ReseedHandler" id="reseed" scope="request" />
28<jsp:setProperty name="reseed" property="*" />
29<%
30/*
31 * The following is required for the update buttons to work, although we probably
32 * only need the updateNonce property.
33 */
34%>
35<jsp:useBean class="net.i2p.router.web.UpdateHandler" id="update" scope="request" />
36<jsp:setProperty name="update" property="*" />
37<jsp:setProperty name="update" property="contextId" value="<%=i2pcontextId%>" />
38<%
39    // moved to java for ease of translation
40    helper.renderSummaryBar();
41%>
Note: See TracBrowser for help on using the repository browser.