Tag: System.getProperty()

Using JSP to display System Properties from a Remote Server

Save the following file as index.jsp and it should display the system properties.



Date: <%= new java.util.Date() %>

Java Version: <%= System.getProperty("java.version") %>

Java Home: <%= System.getProperty("java.home") %>

Java Vendor: <%= System.getProperty("java.vendor") %>

Java Vendor URL: <%= System.getProperty("java.vendor.url") %>

OS Architecture: <%= System.getProperty("os.arch") %>

OS Name: <%= System.getProperty("os.name") %>

User Name: <%= System.getProperty("user.name") %>

User Home: <%= System.getProperty("user.home") %>

User Directory: <%= System.getProperty("user.dir") %>