Solved

jsp and pager tag library

Posted on 2006-11-30
2
580 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now