struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piotr Kopeć <pepe.ko...@gmail.com>
Subject urls and iterations
Date Tue, 05 Oct 2010 04:57:06 GMT
Hi to everyone
I've got table liki this like this

<table class="threads" >
 <s:iterator value="threads" >
  <tr>	
   <td><s:property value="id" /></td>
   <s:url var="show_url" action="showThread" escapeAmp="false" >
    <s:param name="threadId" value="%{id}" /></s:url>
   <td><s: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>
<td><s: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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message