File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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: 1629
    
  23

why i am getting other parameter names?


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

Regards,
Frits
 
wood burning stoves
 
subject: fetching details of Context parameter
 
Similar Threads
problem with accessing JSP init parameters
getServletConfig() and getServletContext()
Init parameter null
getServletConfig
getServletConfig() in pageContext() not working