Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query in using Dynamic Attributes

 
Xenon Parker
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks Bryan for your article on Dynamic Attributes. It was very helpful.

I was wondering if it is possible to use Dynamic Attributes in a TAG File?
If yes, then how?
If No, then Why?

thanks,
XP
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if it is possible to use Dynamic Attributes in a TAG File?

Yes it is. You can use the dynamic-attributes attribute of the tag directive.

Here, the "dynattr" attribute is a Map containing the dynamic attributes. With the following example:

you could get the dynamic attribute via ${dynattr.name}.
 
Xenon Parker
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Christophe.

I found useful information on following URLs-
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags5.html
http://www.onjava.com/pub/a/onjava/excerpt/jserverpages3_ch11/index.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic