Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet config and context parameters  RSS feed

 
Arun Sivaraman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
Can we give same name for servlet config parameter and servlet context parameter.
How can we access in web.xml
[ June 27, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, they are separate namespaces.

See the API documents for ServletConfig and ServletContext for the answer to the second part of your question.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please use descriptive subjects when posting. This entire forum is dedicated to questions on servlets, so a subject of "regarding servlets" doesn't describe your question well. Please read this for more information.

I have updated the subject of this post as an example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!