Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Find Client Information??  RSS feed

 
prasad bhn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
I need to find out the client information using the "request" object of HttpServletRequest.
1. Client Time Zone
2. Client Browser is Java Enabled or Not
3. Client System's Screen Resolution
any help, greatly appreciated..
Thanks in Advance, prasad.
 
Praful Thakare
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
C if this code can help u
<%
java.util.Enumeration e=request.getHeaderNames();
while(e.hasMoreElements())
{
String name=(String)e.nextElement();
out.println(name+" ==> "+request.getHeader(name)+"<br>");
}
%>
regards
Praful
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaDocs for javax.servlet.HttpServletRequest show the methods you can use to get at the headers.
The Specs for HTTP 1.1 show the legal headers and how the values are to be interpreted.
I don't think you can count on the normal headers for the information you want. You may have to use Javascript to get things like screen resolution.
Bill
 
prasad bhn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
thanks a lot for your replies and support.
with regards, prasad.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!