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
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+\);
}
---
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 from
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
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-library?
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 read it
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 tests
On 7/23/05, Martin Cooper [EMAIL PROTECTED] wrote:
snip/
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