How to get the system properties
My problem: i need to get the client's "user name" by using javascript , is it possible?
The problem is in my jsp page if i say<%=System.getProperty("user.name");%>
it gives me the root user name, but what i need is the username of the client (if a person opens my jsp page then automatically his user name(same as that which he used to logon to SYSTEM )should popup in other words i just need a javascript function which does this?!!!!
[470 byte] By [
siv-viv] at [2007-9-26 4:44:35]

Hi,
don't forget that JSP is serverside and javascript is client side. If you want to find the name of a user when he acces your web site
you shoul asociate his IP with his name in a database. So when a new session is open you read his ip with syntax
<%vot.setIP(request.getRemoteAddr());%>
than search for this String in database and if the result isn't null, you will find his name.
Hope my sugestion is good to you, otherwise don't esitate to contact me.
By,
ionut
ionut at 2007-6-29 18:32:43 >
