wood burning stoves 2.0
The moose likes Servlets and the fly likes doubt in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doubt in servlets" Watch "doubt in servlets" New topic

doubt in servlets

Murali Jaya Rao
Ranch Hand

Joined: Jun 10, 2007
Posts: 43
hai everyone,

my doubt is when we are writing an servlet application how to know whether the request is coming from browser(form request from browser) or mobile devices? and if i want to send my response to mobile device rather than to browser how i can send?

//the request may be get or post

SCJP 1.4.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The User-Agent request header should give you a good idea.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
wood burning stoves
subject: doubt in servlets
jQuery in Action, 3rd edition