I am reading about servletContext and servletConfig as below.
Both concepts seems more or less same to me. What are differences, advantages, disadvantages, practical uses of each.
The source code for sevletContext example not given but it was given for servletConfig example. I created dynamic web project for servletConfig which is running fine at
I got output
Name: username value: system
Name: password value: oracle
My question is how i can copy paste servletConfig dynamic project again in eclipse so that i can use that as base reference to build servleContext project on top of that rather than starting from scratch. I went to file---copied servletConfig project---now i went to file again and i do not see paste option enabled. How to do paste?
public Enumeration getInitParameterNames():Returns the names of the context's initialization parameters as an Enumeration of String objects.
How above method is present in both places?
Any links resources ideas highly appreciated. Thanks in advance