I have a servlet. Users from other machines access that servlet and I want to capture the remote user's UserName and do validation over that.
It's just a simple servlet and no login/password is present. I tried request.getRemoteUser(), but its of no luck.
Can some one help me with a solution.
Just to clarify, "logged in" means that the user has logged into the webapp's J2EE standard security system. A LAN login, such as a Windows login, only counts if the webapp server has been configured to hook into Windows LAN security.
Likewise, if you write your own login system or use one the the samples that too many books on J2EE provide, the getRemoteUser() method will just return null. You have to actually use the J2EE standard.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
how do I do my own kindle-like thing - without amazon