JSP System.getProperty is performed when you want to view the system properties and display them on the browser.
Understand with Example
This section demonstrates you the use of method system.getProperty(). You can see in the given example that we have create an array of some system properties to display them into the tabular form. The method System.getProperty(pname) get the defined system properties and display them on the browser. In order to get the System properties values you can use System.getProperty ( ).
Gets the system property indicated by the specified key.
Incase there is a security manager, its checkPropertyAccess method is called with the key as its argument. This may result in a SecurityException.
key - The name of the system property specified in string and Returns: the string value of the system property, or null if there is no property within the string name.
Here is the code of properties.jsp:
Output will be displayed as: