• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What are Scripting Variables (in Custom tags context)

 
J Reddi
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic