Skip to Content
Spring Recipes: A Problem-Solution Approach, Third Edition
book

Spring Recipes: A Problem-Solution Approach, Third Edition

by Marten Deinum, Josh Long, Gary Mak, Daniel Rubio
November 2014
Intermediate to advanced content levelIntermediate to advanced
808 pages
22h 47m
English
Apress
Content preview from Spring Recipes: A Problem-Solution Approach, Third Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring 5 Recipes: A Problem-Solution Approach

Spring 5 Recipes: A Problem-Solution Approach

Marten Deinum, Daniel Rubio, Josh Long
Spring Recipes, Second Edition

Spring Recipes, Second Edition

Gary Mak, Josh Long, Daniel Rubio
SPRING COOKBOOK

SPRING COOKBOOK

Jerome Jaglale, Murat Yilmaz

Publisher Resources

ISBN: 9781430259091Purchase book