name « User « JSP-Servlet Q&A





3. Regarding getting System user name into jsp    forums.oracle.com

Hi, I am using this code in java "System.getProperty("user.name") " it gives proper user name but the same code if i use it in jsp with Tomcat server i am getting "System" as the output instead of the actual user name can any one know what's the problem or there is any way to get the user name into the JSP? ...