Eugene Voznesensky <[EMAIL PROTECTED]> wrote:
> Dear friends,
>
> How can I get information about agent in my servlet.
> I need something like in agent_log of JWS:
>
> [28/Nov/2000:14:26:04 -0800] Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18)
> Gecko/20001108 Netscape6/6.0 myiam.innomedia.com
> [29/Nov/2000:15:06:20 -0800] Mozilla/3.0 (Planetweb/2.606 JS SSL VoIP US;
> Dreamcast US) 209.133.49.105
> [29/Nov/2000:15:10:03 -0800] Mozilla/4.0 (compatible; MSIE 5.0; Windows NT;
> DigExt) myiam.innomedia.com
You have that information in the User-Agent header sent from the Client.
Simply do a HttpServletRequest.getHeader("User-Agent"); and you should be
able to see that browser information.
Pier
--
Pier Fumagalli <http://www.betaversion.org/> <mailto:[EMAIL PROTECTED]>
----------------------------------------------------------------------------
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html