This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

hi guys.. few doubts  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. what is the name of the tag library descriptor element that declares that the value of a tag attribute may be specified at runtime?
2. in custom tag handler, which tag method is used to access the tag handler object of the immediately enclosing custom tag?
3. what are the constants that describe the attributes of a jsp custom tag in a tag library descriptor?
4. what are the properties that can be accessed directly from an instance of javax.servlet.http.HttpSessionBindingEvent?
 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by vasu dev:
1. what is the name of the tag library descriptor element that declares that the value of a tag attribute may be specified at runtime?
2. in custom tag handler, which tag method is used to access the tag handler object of the immediately enclosing custom tag?
3. what are the constants that describe the attributes of a jsp custom tag in a tag library descriptor?
4. what are the properties that can be accessed directly from an instance of javax.servlet.http.HttpSessionBindingEvent?



1. It will be rtexprvalue set to true or yes, under the attribute tag:

2. getParent()
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. rtexprvalue
2. getParent()
3. There are many attributes for a tag. Which attribute?
<!ELEMENT attribute (name, required? , rtexprvalue?, type?, description?) >
a. name = string
b. required = true,false,yes,no
(default value=no)
c. rtexprvalue = true,false,yes,no
(default value=no)
d. type = java data type, by default it is java.lang.String.
(for static values).
e. descripton = string
Please refer the JSP specs or the taglibrary dtd.
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question. 4 :
I have copied/pasted the methods of HttpSessionBindingEvent from the Servlets API. Not sure, if it answers ur question.
a. getName()
Returns the name with which the attribute is bound to or unbound from the session.
b. HttpSession getSession()
Return the session that changed.
c. java.lang.Object getValue()
Returns the value of the attribute that has been added, removed or replaced.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!