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\".
<%=request.getContextPath()%> will give /webapp
<%=request.getContextPath()%>
/webapp
So your link should look like :
name