• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check how many browsers are using servlets

 
sarma kiran
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have develepoed one servlet.In general,it may be used by any number of browsers.

How can i check how many browsers are used by servlet.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sarma kiran welcome to Javaranch,
How can i check how many browsers are used by servlet.

Do you mean to say how many browsers are accessing the servlet?

Then its pretty difficult to determine it. Because one browser can send more than one request.

But why do you need it?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to know which kinds of browsers your servlet is being accessed by? Or just how many clients are making requests to your servlet? If its the second then ServletRequest's getRemoteAddress() will get you the IP address fo the client. You'll need to do some work to records these and count them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic