• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make two instances of servlet

 
Malhar Me
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Will it create 2 instance of a servlet by writing 2 different names in we.xml for the same servlet class.

 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, for each different name that the servlet is registered with, a different instance of the servlet will be created...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we.xml?
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might One Servlet Java Class mapped with two different URL..

correct me if i'm wrong..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic