How to get context path in jsp pager tags.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mdhar9e
    New Member
    • Oct 2011
    • 1

    How to get context path in jsp pager tags.

    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:
    /myweb
    is the context path. But i want to write dynamically .

    Code:
    ]<pg:pager maxPageItems="345" url='<c:out value="${path}"/>/device/deviceResults.do'
    . But this code is not working.
Working...