Checking User Agent in Wicket
I am using wicket 1.5 and I am not able to see in the getClientInfo() method (WebRequest)RequestCycle.get().getRequest() I saw the other place this code WebClientInfo clientInfo = (WebClientInfo)WebRequestCycle.get().getClientInfo(); But I am not able to see any WebRequestCycle in Wicket 1.5. Any ideas how to check the user agent in Wicket 1.5? Christoph Leiter The easiest way is to use WebSession.get().getClientInfo().getUserAgent(); On newer Wicket Versions (6 or newer), you should use: WebClientInfo clientInfo = new WebClientInfo(getRequestCycle()); System.out.println("Client: " +