Actually after getting the first request from the user , I want to create a new instance .
Now why I don`t want to to do that in doGet() or doPost() is because the same servlet is going to process the subsequent request from the same user.
If I put it into doGet() or doPost() it will be creating the instance for each request.
Tea Addict, Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer, Oracle Web Service Developer
posted 4 years ago
So this object would be user-specific, but not request-specific? Sounds like you should put it in the user session after initially creating it, and then reusing it in subsequent requests.