Is there a way to find the path to the tomcat webapps directory using java, as we use System.getProperties("...")to get user.dir, etc.
System.getProperties("...")
user.dir
Thanks in advance.
You can use System.getProperty( "catalina.base" )for this. And add "/webapps"to the path.
System.getProperty( "catalina.base" )
"/webapps"