Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detecting the Browser Type in JSP

 
Dean Tomlinson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to detect the browser type through some request variable. I have done this many times in ASP pages using the Request.ServerVariables.
I could detect the browser in javascript on the first page and add this as a requets parameter to the next page - but this is not ideal.
Hope someone else has encountered this basic requirement.
Cheers, Dean
 
Dean Tomlinson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was being thick - incase anyone else needs to know, this is how you get at it :
request.getHeader("User-Agent")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic