JSP定制标记库(传递属性) [英] JSP custom tag library (Passing Attributes)
本文介绍了JSP定制标记库(传递属性)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在自定义标记中使用多个属性,例如:
I'm trying to use multiple attributes in my custom tag, e.g.:
<mytaglib:mytag firstname="Thadeus" lastname="Jones" />
如何访问TagHandler代码中的属性?
How can I access the attributes in the TagHandler code?
推荐答案
这并不是您所要询问的答案,但我讨厌(即从未写过)TagHandler,但我喜欢
Not really the answer to what you asked, but I hate (ie have never written) TagHandler's but I love tag files. Lets you write custom tags using jsp files. You probably know about them and are not available/applicable - but thought I'd mention them just in case.
这篇关于JSP定制标记库(传递属性)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文