On Thu, Mar 6, 2008 at 3:50 AM, hanaa el asri <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have problem with displaytag, i want to pass dynamicly parameters such as
> pageSize, size, .. but it doesn't work.
>
> my jsp:
>
> <display-el:table name="people"  pagesize="#pageSize"
> requestURI="person_pagin.action">
>      <display-el:column titleKey="label.firstName" property="firstName" />
>     <display-el:column titleKey="label.lastName" property="lastName" />
>     <display-el:column titleKey="label.age" property="age" />
>  </display-el:table>
>

I'm betting you're using Struts 2 (or WebWork) and you're expecting
this standard JSP tag to understand an OGNL expression.
Unfortunately, you're out of luck there.  You might try:

<s:set name="pageSize" value="%{#pageSize}"/>
<display:table name="people" pagesize="${pageSize}"...>

  (*Chris*)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to