Hi all,
I'm using SmartClient Version: v8.2p_2012-09-01/LGPL Development Only (built 2012-09-01) and I'm trying to do device detection and forwarding to appropriate entry point. I have a security Filter that catches all requests and I'm using the WURFL library to detect devices. The only problem I'm having is with the actual redirect.
but I can't seem to get the browser to do a redirect, it just tries to fetch the resource.
I'm using SmartClient Version: v8.2p_2012-09-01/LGPL Development Only (built 2012-09-01) and I'm trying to do device detection and forwarding to appropriate entry point. I have a security Filter that catches all requests and I'm using the WURFL library to detect devices. The only problem I'm having is with the actual redirect.
Code:
boolean webBrowser = isWebBrowser(device); String path = ((HttpServletRequest) request).getRequestURI(); boolean isBrowserOnMobile = webBrowser && path.contains(MOBILE_REQ_PATH); if (isDesktopOnMobile) { //I've also tried /PregledPredmeta/MobileAppEntryPoint.html and using request dispatcher path = "http://192.168.0.199:10080/PregledPredmeta/MobileAppEntryPoint.html"; response.encodeRedirectURL(path); response.sendRedirect(path); ......