Upon further inverstigation here's what I've found -
JSP container (I'm using tomcat 4118) reuses the
TagHandler instance. Hence if instance variables (like
pageNumber in TableTag.java) aren't reset then it
becomes visible for all other request to the same
page.

I added a call to reset() before returning from
doEndTag() and it seems to fix the problem. So now if
A is viewing page 2 then B doesn't get page to as
well.

Can anyone with better knowledge of the TagHandler
lifecycle explain a bit on this?

I added release() on TableTag.java but it doesn't get
called until I try and shut down tomcat.

Thanks
Kumar
 
--- k p <[EMAIL PROTECTED]> wrote:
> I'm seeing a wierd behavior with display tag.
> 
> I have the display tag defined as below in my jsp
> page. 
> 
> <display:table width="75%" 
>  name="USER_LIST" pagesize="5"  
> requestURI="ListUsers.do" scope="session">
> 
> In my action that forwards to this page I create the
> list and set it at session scope.
> The page displays fine with proper pagination. I
> click
> on   page 2 to view its content.
> 
> Now I kick off different browser like mozilla and
> goto
> the page to list the users.
> Interestingly it displays page 2 instead of page 1.
> 
> Looks like the pagination information is set at the
> application scope ? why is this? Pagination on each
> session should be separate no? what am I missing.
> 
> I did verify with request.getSession().getId() that
> the  sessions were different.
> 
> Thanks
> Kumar
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
> 

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to