• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP_USER_AGENT

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
I'm using JSP with WLS, and am trying to capture the HTTP_USER_AGENT header variable to prepopulate a form text box. I can find no reference in any of the JSP books I have available. Is there any way to the user's network logon?
Rick Sharpless
DirecTV
rsharpless@directv.com
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The http user-agent which is part of the request header, is used to determine the type of browser that the client is using. Not sure if that's what you are trying to do.

Bosun
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
OOOPS! It's not the user_agent I'm after. My mistake. I know IIS captures a couple of other variables, and maybe WLS doesn't provide this info. What I'm after is the AUTH_USER or REMOTE_USER variable.
Sorry for the confusion.
Rick Sharpless
 
James Swan
Ranch Hand
Posts: 403
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Provided you are using Basic Authenication, you should be able to get the REMOTE_USER from the request object using the getRemoteUser() method.
James.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
THAT WAS IT! Thanks soooo much.
Rick Sharpless
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"rsharpless"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic