Hello,

I think you can use <s:action> inside the iterator. You probably also
need to create a <s:url> for each member of the iteration and set the
action with it.

You can find reference here:
http://struts.apache.org/2.0.14/docs/action.html

I haven't tried it, but I believe it will work.

Best regards,

Felipe Fraga

On Fri, Dec 26, 2008 at 12:39 PM, Milan Milanovic
<milanmilanov...@yahoo.com> wrote:
>
> Hi,
>
> I have iterator in my jsp which iterate through list of objects. I want to
> call action call method for every object which is iterated, but also to pass
> this object's id to that method, e.g.:
>
> <s:iterator value="list">
> ...
>    <s:property value="callActionClassMethod('+id+')" />
> ...
> </s:iterator>
>
> How can I define this ?
>
> --
> Thx, Milan
> --
> View this message in context: 
> http://www.nabble.com/-S2--Calling-action-class-method-from-jsp-tp21174848p21174848.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to