Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP is resubmitted twice on tomcat

 
Paritosh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have tried JSP on tomcat.When an html form calls the
JSP via the submit button, the jsp is called twice.
I would like to know if there is some setting involved
with the tomcat.
I would like to get the reply asap.
Paritosh
[This message has been edited by Paritosh (edited December 03, 2001).]
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server has no control over how many times a request is made, so it can't be a Tomcat problem. A lot of people double-click on web pages just like they've been trained to do on desktop apps, and this is more likely your problem.
How is the JSP request being made? A form submit, hyperlink, or something more exotic like JavaScript?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it might be browser specific, but I've had the following code submitting twice:

I'm not recommending you do it this way , just saying there are silly things you can do at the client side to make it all act wierd.
Dave.
 
Tomas Nilson
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
I have had the same problem. Sometimes (say, one out of five) when I submit a form pressing a button (once) it gets executed twice on Tomcat. This works fine though when running on localhost, but not on my ISP.
I really need to solve this... ANY ideas, please??!
/Tom
Originally posted by Tim Holloway:
The server has no control over how many times a request is made, so it can't be a Tomcat problem. A lot of people double-click on web pages just like they've been trained to do on desktop apps, and this is more likely your problem.
How is the JSP request being made? A form submit, hyperlink, or something more exotic like JavaScript?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic