This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I used 4 jsp pages in my application.When users selects some item on jsppage3 and clicks on go button then request will be redirected to jsppage4 but
everything on jsppage4 is getting executed twice.
Can you please let me know the reason why it is getting executed twice.I have all research on this topic still unanswered.
juanschodiger jha wrote:
I used 4 jsp pages in my application.When users selects some item on jsppage3 and clicks on go button then request will be redirected to jsppage4 but
everything on jsppage4 is getting executed twice.
Can you please let me know the reason why it is getting executed twice.I have all research on this topic still unanswered.
Check whether the form submission from .."jsppage3" happens twice ??!!
at a guess, it seems you have an <input type="submit"> which will submit the form when you click it.
You probably also have a javascript onclick event which will call form.submit().
Thus your form gets submitted (and thus processed) twice.
Standard resolutions
- in the onclick handler return false to indiciate you have handled the event
or
- make it a button type different from input type="submit"