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

dynamic-attributes in tag files

 
bernard savary
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Can someone tell me how the dynamic-attributes attribute is used inside a tag directive .I tried to set it to true and print the value using {attribute_name} but nothin gets printed .
Also I just tried to use scripting inside a tag file and the conatiner throws a javac compiler error , can we use implicit objects like pagecontext inside a tag file ?
 
Tomaszz Lewandowski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From JSP 2.0 spec, JSP.8.5.1, about dynamic-attributes attribute:

The value identifies a page scoped attribute in which to place a
Map containing the names and values of the dynamic attributes passed during this invocation. The Map must contain each dynamic attribute name as the key and the dynamic attribute value as the corresponding value.


In tag file you access to these implicit scripting variables:
request
response
jspContext
session
application
out
config
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic