I want to retrieve root path of webapplication, then I want to append link to root path. I tried request.context but it returns \"http://localhost:8080/webapp/web-inf\".
I believe you can use the getRealPath() method of the ServletContext.