File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml parameter sharing

 
Anthony Smith
Ranch Hand
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a parameter (param-name) that is defined under one of my servlets. I want to use that same parameter in another servlet and or a jsp. But I dont want to define it multiple times... What options do I have to put it in one place that could be accessed by multiple servlets and jsps?
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
define it at ServletContext level...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic