Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Rahul Akolkar
On 7/23/05, Martin Cooper <[EMAIL PROTECTED]> wrote: > Rahul mentioned SimpleTagSupport, and that would have been nice, but > that came along long after the Struts tags, and indeed the Struts tags > still need to support earlier versions of JSP. Yes, ofcourse. Luca - I probably should've clarif

Re: Optimizing tag-lib performance

2005-07-23 Thread Martin Cooper
On 7/23/05, Luca Passani <[EMAIL PROTECTED]> wrote: > Hello again, > > I would like to improve the performance of a tag-lib I have created. What I would recommend is extracting the "work" of your tags into methods that do not depend on the container being around. Then you can write simple JUnit t

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Martin Cooper
On 7/23/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > ooops, I felt this was a general taglib question, more than a Struts > question. It only takes struts as an example, > but the question is "is there a reason why it makes sense to always > subclass BodyTagSupport in a tag-library?" Sorry, I

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Rahul P Akolkar
Luca Passani <[EMAIL PROTECTED]> wrote on 07/23/2005 02:28:14 PM: > > ooops, I felt this was a general taglib question, more than a Struts > question. It only takes struts as an example, > but the question is "is there a reason why it makes sense to always > subclass BodyTagSupport in a tag-libra

Re: Optimizing tag-lib performance

2005-07-23 Thread Rahul P Akolkar
Luca Passani <[EMAIL PROTECTED]> wrote on 07/23/2005 11:18:57 AM: > the problem is that when I reload the page, the number of milliseconds > is zero and occasionally 8,9 or 10 > (I see output in the tomcat console running on my laptop, so I am sure > that the browser is not caching). > > Quest

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Luca Passani
ooops, I felt this was a general taglib question, more than a Struts question. It only takes struts as an example, but the question is "is there a reason why it makes sense to always subclass BodyTagSupport in a tag-library?" Luca Martin Cooper wrote: Once again, please ask questions about

Re: TagSupport vs BodyTagSupport

2005-07-23 Thread Martin Cooper
Once again, please ask questions about Struts on the Struts mailing lists, rather than here. -- Martin Cooper On 7/23/05, Luca Passani <[EMAIL PROTECTED]> wrote: > > Hello, I would love to hear about some taglib theory here. > > My understanding is that, when creating a new tag, I can inherit

Optimizing tag-lib performance

2005-07-23 Thread Luca Passani
Hello again, I would like to improve the performance of a tag-lib I have created. Some obvious optimizations would be to turn things like: --- out.print(" href=\""+href+"\""); //title is optional if (!title.equals("")) { out.print(" title=\""+title+"\""); } ---

TagSupport vs BodyTagSupport

2005-07-23 Thread Luca Passani
Hello, I would love to hear about some taglib theory here. My understanding is that, when creating a new tag, I can inherit from either TagSupport or BodyTagSupport depending on whether I need to manipulate the tag content or not. For this reason, most of my tags (WALL library) inherit from T