hello there,
we have ArrayList where we take values from user
input and putting it into session .
for single user it works fine
but when it comes to multiuser
say user1 and user2
we are increasing the count of the array list by declaring it as static var
case1: when we declare the arraylist variable in the
<%!  %> when the one user enter value it get also reflected in other
user also
case2:when declare the Arraylist in the <% %>
the second is able to add first time second time
he is getting following error
java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
 at java.util.ArrayList.RangeCheck(ArrayList.java, Compiled Code)
 at java.util.ArrayList.get(ArrayList.java, Compiled Code)
......it working for single user
hope some can sort out this
thanks!
manu

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to