This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml parameter sharing

 
Anthony Smith
Ranch Hand
Posts: 285
  • 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: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
define it at ServletContext level...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic