O'Reilly logo

Spring Recipes: A Problem-Solution Approach, Third Edition by Daniel Rubio, Gary Mak, Josh Long, Marten Deinum

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Spring Mobile

In the current world, more and more mobile devices exist. Most of these mobile devices can access the internet and access websites. Mobile devices might have a browser that lacks certain HTML or JavaScript features you might use on your website, you also might want to show a different website to your mobile users or maybe give them the choice.

You could write all the device detection routines yourself; however, Spring Mobile provides ways to detect the device and to act upon it.

Recipe 8-1. Device detection without Spring Mobile

Problem

You want to detect the type of device that connects to your website.

Solution

Create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required