Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

hi guys.. few doubts

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic