Solved

jsp and pager tag library

Posted on 2006-11-30
2
588 Views
Last Modified: 2010-05-18
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.getAttribute("amountOfPages")%>"

But this works:
maxPageItems="<%=5%>"

Here a snippet from the jsp file:
<pg:pager index="center"
              maxPageItems="<%=session.getAttribute("amountOfPages")%>"
              maxIndexPages="5"
              export="currentPageNumber=pageNumber"
              url=""
              scope="request">
      \="style"/>
      <pg:param name="position"/>
      <pg:param name="index"/>
      <pg:param name="maxPageItems"/>

Thanks
0
Comment
Question by:ram_os
2 Comments
 

Author Comment

by:ram_os
ID: 18044240
got it,

for anyone whos interested:

maxPageItems="<%=session.getAttribute(\"amountOfPages\")%>"

I think its because the tag library is based on an older jsp implementation.
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 18049907
Closed, 200 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question