0

I have an issue where a Struts project I have deployed in Glassfish retains my user details.

Basically upon accessing the webpage, the details of the user are used in the following statement:

String user = System.getProperty("user.name").toLowercase;

Then this variable is passed to a class that runs through the database to find this name and bring back the relevant data.

I deployed this for the team to use and they keep bringing back my information from the database.

I have gone through the project and there is no reference to my username in there at all.

I am stuck on this to be honest, any help would be greatly appreciated.

4

1 回答 1

0

使用以下方式部署小程序:

system.getProperty("user.name");

带回当前登录的用户

于 2013-06-18T08:23:04.263 回答