This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes fetching details of Context parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "fetching details of Context parameter" Watch "fetching details of Context parameter" New topic
Author

fetching details of Context parameter

Mayur Shinde
Greenhorn

Joined: Feb 15, 2012
Posts: 18
I have set context parameter in web.xml file naming email and adminemail, when i am using enumerator to view these fields, i am getting following details

param name adminemail
param name com.sun.faces.injectionProvider
param name com.sun.faces.validateXml
param name com.sun.faces.forceLoadConfiguration
param name email

why i am getting other parameter names?
Prithvi Sehgal
Ranch Hand

Joined: Oct 13, 2009
Posts: 774
Dear Mayur,

Are you using getAttributeNames()?

BR,

Prithvi,
My Blog, Follow me on Twitter,Scjp Tips, When you score low in mocks, Generics,Scjp Notes, JavaStudyGroup
Mayur Shinde
Greenhorn

Joined: Feb 15, 2012
Posts: 18
Prithvi Sehgal wrote:Dear Mayur,

Are you using getAttributeNames()?

BR,



Hey,
I am using enumerator to get all the initparameter.
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1661
    
  25

why i am getting other parameter names?


Because the Servlet-container developers are using this mechanism for their purpose...

Regards,
Frits
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: fetching details of Context parameter