I have tried to insert the following line of code in the doGet method of a servlet in a web application.
After the first request to this servlet, the whole web server shut down. Now suppose that I am a malicious person and I want to host my application on a real server where many other web applications reside.
I could write code like the following :
After that, anytime I want to shutdown the webserver, I can simply request a url and put the shut down password.
Any ideas about how to protect from this issue. [ May 08, 2007: Message edited by: Khaled Mahmoud ]