I am using a variable to set contextpath as given first.

Code:
<c:set var="path" value="${pageContext.request.contextPath}"/>
then i am using this variable in
Code:
c:out
tag.
as
Code:
<c:out value="${path}"/>
in
Code:
<pg:pager maxPageItems="345" url="/myweb/device/deviceResults.do" prevNextUrl="/myweb/device/findDeviceResults.do">
here
Code:
/mywe
...