Hi,
Im creating a small internal web application that will detect the user's username automatically to save them having to log in and out and also to restrict other people accessing the application.
when i run the following code in java
it brings up the windows username.
however when i put this on a jsp page it brings up SYSTEM and when i use the code
to bring up their home directory it works in java but in the jsp it brings up one of the administrators accounts which isnt being used. this admin account cannot be removed.
does anybody have any ways around this?
thanks for the help
Im creating a small internal web application that will detect the user's username automatically to save them having to log in and out and also to restrict other people accessing the application.
when i run the following code in java
Code:
System.getProperty("user.name")
it brings up the windows username.
however when i put this on a jsp page it brings up SYSTEM and when i use the code
Code:
System.getProperty("user.home")
to bring up their home directory it works in java but in the jsp it brings up one of the administrators accounts which isnt being used. this admin account cannot be removed.
does anybody have any ways around this?
thanks for the help