We have developed a Web Application using grails, groovy and oracle as database with css and javascript (jquery) and ajax for web related features. The application work fine on all desktop based web browsers like firefox, IE, chrome etc.
And for hosting it we use tomcat server.
Now we want to develop a mobile based version of this web application such that when the request comes from a mobile device the server should detect the type of device and route it or serve it using the appropriate instance (mobile one for mobile device and normal one for computers)
How do I implement this check in request resolution? is this by creating my custom filter in tomcat server?
Also for the mobile instance I want to have the changes only in the views , its should use the same controllers and services and all other code used for the main browsers, just views and styles and js if required will change. how do I go about having different views for mobile version which get called automatically if the request is coming from a mobile device
Thanks
Priyank
Have you tried the spring mobile plugin? The documentation seems to cover all your questions…