I want to get application path in my application, but I haven't found any way. If anyone knows how can I get application path in my app, It would be great.
Many thanks,
If you want to get absolute path for application, you can get like this.
String applicationPath = request.getSession().getServletContext().getRealPath("")
It will provide absolute path for application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With