struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
Subject Re: [Struts 2] Set action parameter - simple
Date Mon, 02 Jun 2008 16:37:12 GMT
Dear Lukasz,

I have a little problem with setting this value now. Regarding this piece of code:


<s:iterator value="pages" id="id">
            <s:url id="url" action="edit" >
                <s:param name="currentPage" value="%{id}"/>
            </s:url>
            <s:a href="%{url}">Edit ${id}</s:a>
</s:iterator>

when user clicks on this URL in method edit() output log is this, for
example when value is 2:

currentPage: 0
currentPage: 2
currentPage: 0 
?



Lukasz Lenart <lukasz.lenart@googlemail.com> wrote: Solution

        
            
                
            
            Edit ${id}
        


Regards
-- 
Lukasz
http://www.lenart.org.pl/


       
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message