• Post Reply Bookmark Topic Watch Topic
  • New Topic

new instance of a Java model for each new request

 
tazammal iqbal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a new instance of a Java model class for each new request coming to a servlet.
How to do that without doing that in doGet() or doPost().











_______________
iqbal
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By a weird coincidence we've had exactly that question asked and discussed recently in http://www.coderanch.com/t/640126/Servlets/java/create-instance-request-servlet
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!