diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index e5db6f6cb7..830b92b2a0 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -1446,7 +1446,7 @@ public class I2PSnarkServlet extends Default { out.write(Integer.toString(times[i])); out.write("\""); if (times[i] == delay) - out.write(" selected=\"true\""); + out.write(" selected=\"selected\""); out.write(">"); if (times[i] > 0) out.write(DataHelper.formatDuration2(times[i] * 1000)); @@ -1469,15 +1469,15 @@ public class I2PSnarkServlet extends Default { /* out.write("Seed percentage:
\n"); @@ -1554,7 +1554,7 @@ public class I2PSnarkServlet extends Default { } out.write(""); out.write(_("I2CP options")); - out.write(":
\n" + " ").append(ngettext(DUMMY1 + name, DUMMY0 + name + 's', i)); buf.append("\n"); diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/WizardBean.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/WizardBean.java deleted file mode 100644 index 779df44176..0000000000 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/web/WizardBean.java +++ /dev/null @@ -1,25 +0,0 @@ -package net.i2p.i2ptunnel.web; - -/** - * A temporary data holder for the wizard pages - * - * Warning - This class is not part of the i2ptunnel API, and at some point - * it will be moved from the jar to the war. - * Usage by classes outside of i2ptunnel.war is deprecated. - */ -public class WizardBean extends EditBean { - private boolean _isClient; - public WizardBean() { super(); } - - /** - * Whether the tunnel being set up is a client tunnel or not. - * @since 0.8.13 - */ - public void setIsClient(String isClient) { - _isClient = Boolean.valueOf(isClient); - } - /** @since 0.8.13 */ - public boolean getIsClient() { - return _isClient; - } -} diff --git a/apps/i2ptunnel/jsp/wizard.jsp b/apps/i2ptunnel/jsp/wizard.jsp index 95699a73b4..74afb65a28 100644 --- a/apps/i2ptunnel/jsp/wizard.jsp +++ b/apps/i2ptunnel/jsp/wizard.jsp @@ -1,11 +1,15 @@ <% // NOTE: Do the header carefully so there is no whitespace before the <%@page pageEncoding="UTF-8" -%><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.WizardBean" +%><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %> - + <% String pageStr = request.getParameter("page"); /* Get the number of the page we came from */ @@ -50,9 +54,9 @@ - <% if (wizardBean.allowCSS()) { - %> - + <% if (editBean.allowCSS()) { + %> + <% } %> @@ -82,7 +86,7 @@ } %> - +
@@ -341,7 +345,7 @@ if ("null".equals(clientInterface)) { clientInterface = "127.0.0.1"; } - for (String ifc : wizardBean.interfaceSet()) { + for (String ifc : editBean.interfaceSet()) { out.write("\n"); for (int i = 0; i < ips.length; i++) { out.print("