I have a search page with some text boxes (empno, ename, designation, deptno) where the user can enter some values to search. How to create a prepared statement for this search?
How to kill all user sessions using servlets or how to kill user cookie?
We have a requirement to make the application non-editable for certain time. after that we will make the application editable. We will send out mail to users to logoff the application. Some users who does not logoff are able to use the application, this should be avoided. Since User information are stored as cookies, they were able to use the application.
Steps 1. test.jsp page 2. user presses a button and calls servlet 3. Servlet calls database procedure in DAO 4. servlet forwards the request to same jsp page.
Following is the code in Servlet,
The requestdDispatcher does not work if the database procedure takes more than 10 mins. Please let me know how to rectify this. There is no error, browser just keeps loading and nothing happens. Debug messages before forward was written to the console. Database procedure executes fine.