session « Resultset « Java Database Q&A





1. Resultset in session    stackoverflow.com

What are the disadvantages of placing resultset in session? if not which is the best possible way.I tried to place it in a List<Map<String,String>>,does it not affect the performance?

2. session and ResultSet.getDouble    coderanch.com

Hello I have couple of servlets doing different actions. I also use session to setAttribute/getAttribute between jsp and servlets. The logic is like this: login.jsp calls Login servlet - if ok redirect to accountInfo.jsp accountInfo.jsp allow user to deposit amount (a double) if it is 0 accountInfo.jsp calls Deposit servlet - if ok redirect to accountInfo.jsp showing the updated amount I ...

3. Resultset in session    coderanch.com

Hi, I am executing a query in a servlet and storing the resultset in a arraylist.Then I send the arraylist through session to jsp, for display. I am noticing that executing query ,looping etc are not taking time but when I pass the request from servlet to jsp,it takes lot of time. My resultset can be big containing 150 records or ...

4. session and ResultSet.getDouble    coderanch.com

Hello I have couple of servlets doing different actions. I also use session to setAttribute/getAttribute between jsp and servlets. The logic is like this: login.jsp calls Login servlet - if ok redirect to accountInfo.jsp accountInfo.jsp allow user to deposit amount (a double) if it is 0 accountInfo.jsp calls Deposit servlet - if ok redirect to accountInfo.jsp showing the updated amount I ...

5. can i append my session varable name to resultset object name?    coderanch.com

Bala, You cannot have different variables for different users, this is exactly why session management is used for... I don't know the exact structure/design of your code.. but i think you are not using session properly or you are sharing the instance variable in a servlet or you might have a static variable holding the result set.. can you paste the ...