Hi, Finally I have created the project from the scratch, with the minimum jar files possible, and now works fine! I believe there was a jar version conflict, and this was the cause of slow s:url execution.
Thanks a lot! Cheers Jordi Rubio Moreno -----Mensaje original----- De: Jordi Rubio Moreno [mailto:[EMAIL PROTECTED] Enviado el: lunes, 14 de mayo de 2007 17:06 Para: Struts Users Mailing List Asunto: RE: [S2] Slow s:url execution Hi Musachy, I'm installing TPTP plugin for Eclipse to control the project execution. When I have more information I'll send you :) ATM I can say the ArrayList offers has only 10 Offer objects. Cheers! Jordi Rubio Moreno -----Mensaje original----- De: Musachy Barroso [mailto:[EMAIL PROTECTED] Enviado el: lunes, 14 de mayo de 2007 14:43 Para: Struts Users Mailing List Asunto: Re: [S2] Slow s:url execution AFAIK There shouldn't a huge difference. You could setup a profiler and see where the bottleneck is on the jsp tags version. By the way how many items does "offers" have? musachy On 5/14/07, Jordi Rubio Moreno <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm testing s:iterator and s:url tags vs #foreach and #surl velocity > tags, and my surprise is that Struts s:url tag is "slower" than #surl > invocation. When I work with Velocity, the test page is rendered > immediately, but when I execute the same test (in the same machine and > Tomcat) with s:url, an annoying scroll effect appears. > > The code I'm testing is (offers is an ArrayList of very light POJOs): > > * taglibs > > <s:iterator value="offers"> > <tr> > <td> > <s:url id="offUrl" action="Redirect"> > <s:param name="url"><s:property value="url"/></s:param> > </s:url> > <s:a href="%{offUrl}"><s:property value="title"/></s:a> > </td> > </tr> > </s:iterator> > > * Velocity > > #foreach($offer in $offers) > <tr> > <td> > #surl("id=offUrl" "action=Redirect" "url=$offer.url") > <a href="${offUrl}">$offer.title</a> > </td> > </tr> > #end > > What's the matter? What I'm doing wrong? I'm using Struts 2.0.6. > > Thanks a lot in advance! > > Cheers > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]