Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hi guys.. few doubts

 
vasu dev
Greenhorn
Posts: 3
  • 0
  • 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?
 
Faisal Khan
Ranch Hand
Posts: 285
  • 0
  • 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()
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic