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\".
You can also use
jstl tag. It will add the context path for you.