• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletContext.getAttributeNames

 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why shouldnt this return an empty Enumeration ever? i searched the specs but there was nothing in it nor in the Api sheet
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ted mosby wrote:why shouldnt this return an empty Enumeration ever?

What happened when you tried it?
 
Devaka Cooray
Marshal
Pie
Posts: 4897
409
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ted mosby wrote: i searched the specs but there was nothing in it nor in the Api sheet

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getAttributeNames()
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Ted.
ted mosby wrote:why shouldnt this return an empty Enumeration ever?


Container/Server sets the necessary attributes like in application scope inorder to use it for internal purposes. If it is Tomcat it sets the attributes

For attribute name 'org.apache.catalina.jsp_classpath' it stores the classpath pointing to various jar files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic