2005-11-12 02:38:55 +00:00
|
|
|
<%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><%
|
|
|
|
String tun = request.getParameter("tunnel");
|
|
|
|
if (tun != null) {
|
|
|
|
try {
|
|
|
|
int curTunnel = Integer.parseInt(tun);
|
|
|
|
if (EditBean.staticIsClient(curTunnel)) {
|
|
|
|
%><jsp:include page="editClient.jsp" /><%
|
2005-03-30 00:07:36 +00:00
|
|
|
} else {
|
2005-11-12 02:38:55 +00:00
|
|
|
%><jsp:include page="editServer.jsp" /><%
|
2005-03-30 00:07:36 +00:00
|
|
|
}
|
2005-11-12 02:38:55 +00:00
|
|
|
} catch (NumberFormatException nfe) {
|
|
|
|
%>Invalid tunnel parameter<%
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
String type = request.getParameter("type");
|
|
|
|
int curTunnel = -1;
|
2009-01-23 01:22:14 +00:00
|
|
|
if (EditBean.isClient(type)) {
|
2005-11-12 02:38:55 +00:00
|
|
|
%><jsp:include page="editClient.jsp" /><%
|
|
|
|
} else if ("server".equals(type) || "httpserver".equals(type)) {
|
|
|
|
%><jsp:include page="editServer.jsp" /><%
|
|
|
|
} else {
|
|
|
|
%>Invalid tunnel type<%
|
2005-03-30 00:07:36 +00:00
|
|
|
}
|
2005-11-12 02:38:55 +00:00
|
|
|
}
|
2009-01-23 01:22:14 +00:00
|
|
|
%>
|