|
Its ok now. i found the solution although its not java. ^_^ i used javascript and ActiveX function to get the domain and username and pass it to my servlet. Its kind of tricky but the code is much short about 5 lines to get the values and submit it to my servlet. But the problem is it works only for I.E. 7 and up so i had to make some restrictions on that, about almost everyone here uses I.E. except me i prefer other browsers. That is the legal browser in our company.
And another info for JSP, refrain from using .trim() and .substring() function. . . uhmmm in my case sometimes i works most of the times it doesnt. i just used the long method which is the Char Array
__________________
Mind only knows what lies near the heart, it alone sees the depth of the soul.
|