• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic-attributes in tag files

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic