hello, I hardly searching how to disable close window please help me i have below code how to use that code in servlet.If i integrated that code into servlet it will work fine? please ya help me i will follow in that
Servlets do not have Java GUIs, so the Swing code you posted is not applicable to them.
What kind of window are you talking about - a browser window? If so, note that that is a user-hostile thing to do. If the user wishes to close a window then a well-behaved application should not stop him from doing so.
What are you trying to accomplish? [ July 23, 2008: Message edited by: Ulf Dittmer ]
hi thanks for your reply i feel very difficult to do that.please help me actually i have crmpopup window using servlet it contain logout button. without pressing logout button they simply closed window means very problem database value wont change. for that i need to know how to disable close window button in crmpopup screen please give some idea if you know good link to get code please tell
What is a "crmpopup screen"? Is this a browser popup?
Could you not add an HttpSessionListener to perform the clean up code when the session is timed out?
But if you intend to disable the cloase button of the browser, then you have to try some Java scripts to do it.