Re: urls and iterations
Thank kou Kou There's still more to learn for me As I guess there isn't any mechanism for declaration/evaluation, eg: s:url var='showUrl' action='show' evalLater='true' s:param name='id' value='%{id}/ /s:url s:iterator value='items' s:property value='id' /br/ s:property value='%{showUrl}' eval='true' /br/ /s:iterator Then s:property will be url that evals with getting item.id ... For PC browsers I'll use javascript post as you suggested, it will be much cleaner and probably faster Thanks again and have a great day Piotrek - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
urls and iterations
Hi to everyone I've got table liki this like this table class=threads s:iterator value=threads tr tds:property value=id //td s:url var=show_url action=showThread escapeAmp=false s:param name=threadId value=%{id} //s:url tds:a href=%{show_url} show/s:a/td /tr /s:iterator /table It's about performance After adding url creation and reference to it in table row s:url var=show_url action=showThread escapeAmp=false s:param name=threadId value=%{id} / /s:url tds:a href=%{show_url} show/s:a/td The code runs 200-300 ms longer on 20 iterations (debugging on WARN level) Why it's running so slow? What is correct technique for implementing caling action from table node? Thanks Piotrek --- Struts-2.2.1 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org