Neelima,

Use the requestURI attribute of the <display:table> tag to provide a URL
with the required attributes.  Say you've got three attributes, x=1, y=2,
and z=3.  You'd do something like this:

<display:table requestURI="myPage.jsp?x=1&y=2&z=3" ...>

Displaytag will take this URI and append the paging and ordering
attributes to it.  Use the same technique if you post to, e.g., a Spring
or Struts controller, or whenever you need a URL that differs from "this
page".

If you're doing a post instead of get, then it gets a bit more
complicated, so don't do that unless you're prepared to get your hands
really dirty :^)

Neelima Madhavaram said:
> Hi,
>
>   I am new to display tag. I was displaying an ArrayList using display tag
> and I could see items, apply styles etc.
>   But when I added pagesize attribute and clicked next page, it doesn't
> show anything. First page is ok.
>
>   I know the reason for its behaviour but I don't know how to fix the
> problem.
>   Problem is: All my elements of jsp are displayed using request
> attributes.
>   Along with display table list, some other lists, dropdowns are displayed
> using request attributes.
>   So when I click Next all request attributes are lost and the page is
> empty.
>
>   So is there any way to keep request attributes through out paging?
>
>   Thanks
>   Neelima
>
> ---------------------------------
> Brings words and photos together (easily) with
>  PhotoMail  - it's free and works with Yahoo! Mail.


-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to