dcsimg
Retriving Client information
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kaki_subash
Posted On:   Wednesday, December 19, 2001 12:24 AM

Is there any way by which I can get the details of the Client(browser) info.
from a servlet or JSP page?

Re: Retriving Client information

Posted By:   philips_abraham  
Posted On:   Wednesday, December 19, 2001 01:42 AM


try this code snippet



Enumeration e1 = request.getHeaderNames();

while (e1.hasMoreElements())

{

String header1 = (String)e1.nextElement();

Enumeration e11 = request.getHeaders(header1);

while (e11.hasMoreElements())

{

out.println("value of "+ header1 +" is :"+(String)e11.nextElement());

}

}



it is used for getting all the headers with the request.

About | Sitemap | Contact