You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bhaarat Sharma <bh...@gmail.com> on 2009/06/08 16:41:56 UTC

Problem with displayTag

Hi guys,
I'm starting displaytag for the first time.

I have a simple Struts2 action that is returning a list.  The list contains
elements of Class Apple.

Following is the code I have:

<s:set name="list" value="testList" scope="session" />


                <display:table name="sessionScope.list" pagesize="4">
                       <display:column property="name" title="Name" />
               </display:table>

This works ok, however, when I click 'next page' the page says 'Nothing
found to display.'

Does anyone know how to fix this?

Re: Problem with displayTag

Posted by Richard Sayre <ri...@gmail.com>.
You need to set hte requestURI attribute

see http://displaytag.sourceforge.net/1.2/displaytag/tagreference.html#display-el:table

On Mon, Jun 8, 2009 at 12:11 PM, Bhaarat Sharma<bh...@gmail.com> wrote:
> Hi guys,
> I'm starting displaytag for the first time.
>
> I have a simple Struts2 action that is returning a list.  The list contains
> elements of Class Apple.
>
> Following is the code I have:
>
> <s:set name="list" value="testList" scope="session" />
>
>
>                <display:table name="sessionScope.list" pagesize="4">
>                       <display:column property="name" title="Name" />
>               </display:table>
>
> This works ok, however, when I click 'next page' the page says 'Nothing
> found to display.'
>
> Does anyone know how to fix this?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org