• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpServlet help  RSS feed

 
Kalpana Balasubramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are around 10 servlets used in my application. I need to extract the common functionality from all these servlets and these code have to be executed before any user request comes in. What could be the best place to put this common method. Can anyone suggest.
[ March 18, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a one-time initialization function? If so, perhaps a context listener would fit the bill.
 
Kalpana Balasubramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. Let me try it out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!