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 use pageContext.request.contextPath
${pageContext.request.contextPath}
So you can use,
name
But the better way is to set the base href to this path and then use the path as it is.