Hi Jon,

I'm wondering whether it is a tomcat/jasper bug or a bug in the pager 
taglib. I will forward the question to the tomcat user list.

Thanks for your answer

Christoph

Jon Ferguson schrieb:
> Hey Christoph,
> 
> I think you're correct.. the tag gets cached and release() is not called.
> 
> Here's what I found...
> 
> I've just been fighting a similar problem.  In my case things worked fine
> the first time I used the tag.. paging etc. was ok (However I did need to
> set the isOffset attribute on pager to true).
> 
> Now when I returned to the page with a new array of data I did not get any
> data displayed but Did get the old index presented.  Clicking on a page
> number would sometimes cause the data to be displayed.  However, after
> spending lots of time on this I found that Tomcat (4.1.12 as well) was not
> calling release() on the tag and therefore two internal variables were not
> being reset in doStartTag().
> 
> I was able to get it all working by editing soStartTag() setting offset and
> itemCount to 0 at the start of the method.
> 
> So I suspect there are 2 answers.. disable caching (though I know not how! -
> nor does this seem right).. or get the code modified.
> 
> Cheers,
> Jon
> 
> ----- Original Message -----
> From: "Christoph Kulla" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 10, 2002 5:22 PM
> Subject: Pager taglib doesn't work
> 
> 
> 
>>Hi,
>>
>>first of all I want to introduce myself. I'm from Germany, new to the
>>list and started with the struts framework a few days ago.
>>
>>I'm trying to get the pager taglib
>>(http://jsptags.com/tags/navigation/pager/) working with struts. I use
>>logic:iterate to iterate through a list of items. When calling my jsp
>>page the first time everything works fine. I see a table with the first
>>20 items and the page navigation links of the pager taglib. But when
>>calling the jsp page a second time my table is always empty. The same
>>happens with the sample page of the pager taglib distribution. Btw, I'm
>>using tomcat 4.1.12.
>>
>>Does anyone use the pager taglib with the current version of tomcat?
>>
>>Imho the problem is, that the same instance of the pager tag gets reused
>>on every call to the jsp page and the tag instance does not get
>>initialized again. How can I disable caching of jsp tags?
>>
>>Best regards
>>
>>Christoph
>>
>>
>>--
>>To unsubscribe, e-mail:
> 
> <mailto:[EMAIL PROTECTED]>
> 
>>For additional commands, e-mail:
> 
> <mailto:[EMAIL PROTECTED]>
> 
>>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to