Hi, I have a JSP page, which I can give different data and can submit number of times. Here I opened the same JSP page 5 times and gave the same data in first 4 pages and gave the different data in 5th page. When I click Commit(is a button in JSP) on 3rd JSP page, instead of submitting that form's data, it is submitting the 5th JSP form's data. Can anybody please tell me why it is not submitting the each form's data independently? I need the reply to this urgently. Thanks,
In my JSP code, isThreadSafe is false. So, if I set its value to true, each form's data can be submitted independently?
No. By setting it to true you're telling the servlet container that it is thread-safe, because you have programmed it that way. If the code you write is not thread-safe, then the servlet container has no way of making it thread-safe, and you should set that flag to false. But there is no good reason not to make your servlets/JSPs thread-safe. [ October 22, 2007: Message edited by: Ulf Dittmer ]