Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!