565758596061626364656667
if (pathInfo == null) { resp.sendRedirect("../images/invalid-url.png"); } PathQuery query = new PathQuery(); boolean ok = query.parse(pathInfo); if (!ok) { resp.sendRedirect("../images/invalid-url.png"); return; }
798081828384858687
p.setDebug(true); java_cup.runtime.Symbol s = p.parse(); if (s == null) { throw new Exception("Failed to parse: " + queryText); } PathQuery parsedQuery = (PathQuery)s.value; Query query = XPQueryParser.compile(parsedQuery); return query; }