I have a web application. i need to get the information about the OS of users who are accessing this application.What are the possible ways to do it...??
A table, a chair, a bowl of fruit and a violin; what else does a man need to be happy?:Einstein
Every request has a header named "User-Agent" that contains information about the user's browser and environment (including operating system).
An example of this header's value is this: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)".
You can get the header value in a servlet using a HttpServletRequest method: