I am new to the Java language. I've written a Java web service application using the NetBeans IDE and it's working fine.
I want to maintain logs in a separate text file for each user login in the logs folder of the web service application, but I haven't figured out how to get the root folder path of the web service application.
I am .NET programmer, so in .NET I can use Server.MapPath("~/logs")
to get the logs folder path which is present under the web service application root folder. How can I do the equivalent using Java?