struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: [Struts 2] Set action parameter - simple
Date Mon, 02 Jun 2008 13:12:54 GMT
use this instead:

  <s:param name="currentPage" value="%{property}" />

musachy

On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
<milanmilanovich@yahoo.com> wrote:
> Hi,
>
> I have currentPage int attribute in my action class and I want when user click in my
jsp to set currentPage attribute. I tried it like this (pages is a list of int values):
>
> <s:iterator value="pages">
>    <s:url id="url" action="list.action" >
>       <s:param name="currentPage" value="<s:property/>" />
>    </s:url>
>
>    <s:a href="%{url}" theme="ajax" notifyTopics="/refresh"><s:property/></s:a>
> </s:iterator>
>
> But, curentPage is not set at all ? I checked in method which is response to the "list.action",
it is always 0. What is wrong here ?
>
> --
> Thx, Milan
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message