Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

API to Dynamically create Servlets int Tomcat?  RSS feed

 
Sanjay Ra
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Is there a way that i can dynamically create a servlet in tomcat by calling an API?
Would i need to pass parameters to the init method for this?
Is there a way i can do this?

thanks!
Sanjay
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Report post to moderator
It is intended that the container manages the servlet life cycle, and you are not invited to create new ones. What kind of problem are you trying to solve? Maybe we'll have another way around it.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
please don't post the sme topic in multiple forums -- it makes things difficult to follow and wastes people's time when they answer a question that's already been addressed elsewhere. Please post your replies in the original topic, here.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!