java - Why HTMLUnit always shows the HostPage no matter what url I type in (Crawlable GWT APP)? -
here full code public class crawlservlet implements filter{ public static string getfullurl(httpservletrequest request) { stringbuffer requesturl = request.getrequesturl(); string querystring = request.getquerystring(); if (querystring == null) { return requesturl.tostring(); } else { return requesturl.append('?').append(querystring).tostring(); } } @override public void destroy() { // todo auto-generated method stub } @override public void dofilter(servletrequest request, servletresponse response, filterchain chain) throws ioexception, servletexception { httpservletrequest httprequest = (httpservletrequest) request; string fullurlquerystring = getfullurl(httprequest); system.out.println(fullurlquerystring+" wrong"); if ((fullurlquerystring != null) && (fullurlquerystring.contains("_escaped_fragment_"))) { // remember unescape %xx characters fullurlquerystring=urldecoder.decode(f...