%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%
// http://www.crazysquirrel.com/computing/general/form-encoding.jspx
if (request.getCharacterEncoding() == null)
request.setCharacterEncoding("UTF-8");
String i2pcontextId = null;
try {
i2pcontextId = (String) session.getAttribute("i2p.contextId");
} catch (IllegalStateException ise) {}
%>
" />
" />
<%
String url = searchhelper.getURL();
if (url != null) {
response.setStatus(303);
response.setHeader("Location", url);
%>
Searching...
<%
} else {
response.setStatus(403);
String query = request.getParameter("query");
if (query == null || query.trim().length() <= 0) {
%>
No search string specified!
<%
} else if (request.getParameter("engine") == null) {
%>
No search engine specified!
<%
} else {
%>
No search engines found!
<%
}
}
%>