• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!