File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: doubt in servlets
It's not a secret anymore!