ram_os
asked on
jsp and pager tag library
Hi,
Im trying to set a value (maxPageItems) in pager tag library by using a session variable but I am getting the error Attribute amountOfPages has no value even though the attribute does have a value.
This is the line that causes the error:
maxPageItems="<%=session.g etAttribut e("amountO fPages")%> "
But this works:
maxPageItems="<%=5%>"
Here a snippet from the jsp file:
<pg:pager index="center"
maxPageItems="<%=session.g etAttribut e("amountO fPages")%> "
maxIndexPages="5"
export="currentPageNumber= pageNumber "
url=""
scope="request">
\="style"/>
<pg:param name="position"/>
<pg:param name="index"/>
<pg:param name="maxPageItems"/>
Thanks
Im trying to set a value (maxPageItems) in pager tag library by using a session variable but I am getting the error Attribute amountOfPages has no value even though the attribute does have a value.
This is the line that causes the error:
maxPageItems="<%=session.g
But this works:
maxPageItems="<%=5%>"
Here a snippet from the jsp file:
<pg:pager index="center"
maxPageItems="<%=session.g
maxIndexPages="5"
export="currentPageNumber=
url=""
scope="request">
\="style"/>
<pg:param name="position"/>
<pg:param name="index"/>
<pg:param name="maxPageItems"/>
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
for anyone whos interested:
maxPageItems="<%=session.g
I think its because the tag library is based on an older jsp implementation.