Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

What are Scripting Variables (in Custom tags context)

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read about scripting variables(in the Custom tags context) and not clear about them.
One book I read says that implicit objects(request, Session, response, pageContext etc) in the JSP pages are scripting variables for use by JSP scriptlets and expressions. That is clear for me, I have no problem in understanding that.
----- Same book also says (in the TagLib chapter)---
.......that Custom tag libraries define named objects called Scripting variables.
A custom action informs the JSP container about these scripting varables that it will define by extending TagExtraInfo class.
You can specify this extended class in the TLD using <teiclass> element. The JSP container invokes getVariableInfo() mehtod of TagExtraInfo class at translation time. This method provides information on each variable that the generated servlet must define at request time when it executes the custom action.
Another related Question:
How are these Scripting elements(in the custom tag context) different from attributes defined by <attribute> element tag. (in the custom tag context)
Hope some Taglib guru to answerr this confusion.
Thanks
J. Reddi
SCJP
 
    Bookmark Topic Watch Topic
  • New Topic