arunkumar subramanian

Ranch Hand
+ Follow
since Jun 10, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by arunkumar subramanian

Hi

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?


[edited to add line break]
That works. Thanks
14 years ago
JSP


The outerMap is set in Request object. In JSTL(JSP) I can get the value of outermap


I can see the values printed in JSP
{ONE_EXISTS=Y, TWO_EXISTS=Y}

How to retrieve the information of innerMap (ONE_EXISTS or TWO_EXISTS)? Please help.
14 years ago
JSP
Thanks for your help. I will try it.
14 years ago
But how can I call session destroyed method from servlet? or how can I get the sessions that were created?
14 years ago
Thanks for your response.

How can I keep track of sessions? by implementing SessionListener?
14 years ago
Hi

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.

Please let me know.
14 years ago
Thanks for your replies. I will try the one as you all said
15 years ago
Thanks for your reply. Is there a way I can set time out in browser to be like 30 mins.
15 years ago
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.
15 years ago
By combo box, you mean <select> box?



Statement can be replaced by PreparedStatement, but not sure.

Hope this helps.
[ July 10, 2008: Message edited by: arunkumar subramanian ]
How to get the number of success and failures, If i use executebatch()?

When I use it in a test program and iterate the int[], I get -2 as value in the array even when the table got updated/inserted.

In the sameway If I use executeUpdate(), I get 0 for failure (or no update) and >0 for success (database updated).
I just took the core of what I need. I will give a try and see. Thanks for your input.
15 years ago
It is an absolute ordering. I have a predefined set of information and the arraylist will contain only that data.



There can be duplicate entries in the arraylist, but there will not be any value apart from these.


[ July 03, 2008: Message edited by: arunkumar subramanian ]
15 years ago