Hi, There is no way to do this with standard GWT apps because the navigators don't authorize website to get this information. It would be an important security issue. If you really want to do that, the best way is to install(if it exists) or develop a plugin/activex for each navigator you want to use which can read this information directly from the system and allows javascript to retrieve it.
Regards, Damien 2009/2/13 Roger <[email protected]> > > Hi all, > > Greeting from Roger. > I do not know how to get login user from Windows in GWT. I try solving > this in the way below, unfortunately does not work. > > In RemoteServiceServlet, > > ............... > Principal principal = getThreadLocalRequest().getUserPrincipal > () // principal is NULL!! > String userName = principal.getName(); > .................... > > Is there anyone can help me on this ? > Thanks a ton. > > BR, Roger > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
