Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Query in using Dynamic Attributes  RSS feed

 
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
 
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
Boost this thread!