Shams Pakistan

Greenhorn
+ Follow
since Jun 06, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shams Pakistan

Hi Tim Holloway,

I am not trying to get the network card MAC address but rather the computer name. So are you saying that request.getRemoteHost() will not return the computer name of the client correctly?

Please advise
11 years ago
Hello harshvardhan ojha,

Thank you very much for your prompt reply. What do you mean when by if host is unknown?

Please advise.

Thanks
11 years ago
Hello,

Hope you are doing fine. We have an internet facing web application which is running on WebSphere. I would like to get the Client Computer Name within one of the Servlets, I believe I can get the IP address using but the IP address would be different each time a user invokes a Servlet. I need to maintain within our database USERID and Computer Name i.e. one USERID can have multiple Computer Names.

I believe I can not get the MAC address within Servlet but I was wondering if it is possible to get client computer name.

I would really appreciate any help

Thanks
Regards
11 years ago
I found the solution.

Need an equals method and hashCode in my NodeData class, problem was internally after setting the new Model when I was trying to expand the path the equals returned false as default implementation of equals does a "shallow compare" i.e. only compares references, I had to override the hashCode and equals method and did a "Deep compare" in equals method.

Thanks
12 years ago
Hello,

I have a Lazyily loaded JTree but I am facing some problems.

I have a JTree which I load lazily using database query (each node). I have a button on the screen and when user clicks the button I perform some insert/update/delete in database and then add the model back in Jtree with only root and its immediate children using an SQL (this collapses the tree and selection and all expanded nodes collapse which is expected since it is a lazily loaded tree)

What I want to accomplish is before user clicks button to insert/update/delete, I read all the expanded state and save it in memory then when I re-initialize the Jtree I loop through those expanded children and call jtree.expandPath but it does not expand the nodes .

I even added a TreeWillExpandListener and in treeWillExpand event I added code to get the children of the node from database and I see that query does get executed to get the childreen but JTree still shows up as collapsed.

I really need your help. Please advise. Here is the code snippet.

12 years ago