Right now we are working on a project that will have a desktop and a mobile version of the site, created in Spring. We want the mobile and the desktop version to share the same Spring security system etc.
We are using Spring mobile to detect whether or not the device is mobile, and may possibly use the Spring site preference parameter.
We dont want to use the spring mobile redirector, as this appears to redirect to another domain (eg m.website.com), and would not use the same spring security easily.
So I am thinkin gof using a HandlerInterceptor to redirect to a specfic directory within the site - eg "/jsp/mobile/".
1) Is it possible in this extended HandlerInterceptor to use the Spring Mobile device detector in the preHandle method?
2) What is the best way to redirect? Is it a) to just use the http response, or b) to somehow change the viewResolver and change the prefix from "/jsp/" to "/jsp/mobile/"
Sorry for the long winded question, but I hoped to put as much info in as possible about what we are trying to do!
Cheers