}
request.setAttribute("start", new Integer(startIndex));
SearchService s = WOJServer.getInstance().getSearchService();
SearchResult r;
try {
r = s.search(q, SecurityHelper.getUAK(request), startIndex);
} catch (ParseException e) {
throw new IllegalArgumentException("bad query: "+q);
}
request.setAttribute("processed", Boolean.TRUE);
request.setAttribute("query", q);
request.setAttribute("hitsCount", new Long(r.getHitsCount()));
request.setAttribute("queryProcessTime", new Long(r.getQueryProcessTime()));
request.setAttribute("nextResults", r.getNextResults());
request.setAttribute("prevResults", r.getPreviousResults());
request.setAttribute("hits", r.getHits());
request.setAttribute("processTime", new Long(r.getProcessTime()));
d.forward(request, response);
}