Hi,
I'm running netbeans 6.0.1, and trying to create a java servlet to handle various functions such as user login and database search on a website.
The html form code calls as its action my servlet's name (Search) and uses POST as the method to parse parameters.
Everything is all wonderful with the code, it does what it needs to do. My problem is as soon as the servlet finishes executing - the apache tomcat or glassfish web server dies / is shut down. I do not want this as I want my user to continue browsing the site and the servlet to be executed multiple times to perform various functions. Unless I have misunderstood what a servlet could and should be used for I assume this should be possible.
I have tried altering the server properties, and changing the shutdown port and command in the apache tomcat server.xml config file (so that whatever is calling it will not be able to) But this has no effect, and I've spent lots of time researching would could be a very simple problem I believe. So can anyone help me?
(PS I've also posted this question on the sun forums, I'm just frustrated with the problem and looking for a swift answer).