Thanks for your feedback!
I am trying to get the logged in windows user id on the client side.I
want to get the user name of the user that initiated the request from
the browser. This is the code that I tried to use in onModuleLoad
method:
String str = System.getProperty("
user.name");
I was getting the error that such method is not defined.
Based on my search on the web, GWT client does not support this
method. Even, I tried to do JRE emulation based on the link:
http://javaasylum.blogspot.com/2011/02/emulate-non-supported-class-in-gwt.html.
GWT still complains. Probably, GWT has already implemented a version
of java.lang.System class.
There were some posts on using windows active x control to get he user
name. I tried JSNI to implement the following code,even though it can
work only on IE (not an ideal solution).
var WinNetwork = new ActiveXObject("WScript.Network");
I got the error that GWT could not instantiate the active X object.
Please let me know if you have any other info. I am sure some one
might have figured the solution! This should be a typical use case.
On Apr 16, 9:03 pm, Hilco Wijbenga <
hilco.wijbe...@gmail.com> wrote:
> On 5 April 2012 07:33, Saty <
saty1...@gmail.com> wrote:
>
> > I would like to useSystem.getProperty(User.Name) in GWT. The server
> > will be running on iSeries platform. I am looking for ways to do this
> > without introducing new framework .
>
> If you mean on the server then it has nothing to do with GWT, just runSystem.getProperty. Otherwise, create some sort of callable API (ReST,