using a static variable in a servlet
I wanted to count the number of object entities that i add through my html page and generate a number(manually) for each object added. After adding each object, i want to have a display of the total number of objects added in the same page with object number concatenated to the object name. i thought of using a static variable inside a class and update that variable whenever i'm calling a method to add the object. am i going in the right way? give me your opinions.