Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Multiple times submitting a form leads to errors in submission.  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi check your jsp coding

where the isthreadsafe option=true or false.
 
Gayathri Chowduru
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my JSP code, isThreadSafe is false. So, if I set its value to true, each form's data can be submitted independently??? Please clarify..

Thanks,
 
Rancher
Posts: 42974
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
Gayathri Chowduru
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohhh... Then what is the solution for my issue? Please any one can help me, I need the reply by the end of the day.
Thanks,
 
Marshal
Posts: 67226
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gayathri Chowduru:
I need the reply by the end of the day.


Please read this for reasons that putting such phrases in your posts is less than a good idea.
 
Bear Bibeault
Marshal
Posts: 67226
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your JSP thread-safe? Is the servlet you are submitting the form to thead-safe?
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!