aspose 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
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply 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: 771
Dear Mayur,

Are you using getAttributeNames()?

BR,

Prithvi/Beenish,
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
Rancher

Joined: Apr 07, 2010
Posts: 1039

why i am getting other parameter names?


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

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fetching details of Context parameter
 
Similar Threads
problem with accessing JSP init parameters
Init parameter null
getServletConfig() and getServletContext()
getServletConfig
getServletConfig() in pageContext() not working