By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,468 Members | 1,865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,468 IT Pros & Developers. It's quick & easy.

Submit Button in JSP

P: 14
Hai,
Whether it is possible to use two submit buttons in same page(Jsp)

Thanks in Advance
P.Padmanabhan
Nov 23 '06 #1
Share this Question
Share on Google+
7 Replies


PLA
P: 44
PLA
Hai,
Whether it is possible to use two submit buttons in same page(Jsp)

Thanks in Advance
P.Padmanabhan
You can use two submit button in the same page, if they are in the same form, they will do the same action (the action of the form) but you'll get in the Query string the name=value of the one clicked,
or you put 2 forms on your page with 2 actions and 1 button submit in each.
Nov 23 '06 #2

P: 14
Hello,
Thanks you Sir


You can use two submit button in the same page, if they are in the same form, they will do the same action (the action of the form) but you'll get in the Query string the name=value of the one clicked,
or you put 2 forms on your page with 2 actions and 1 button submit in each.
Nov 24 '06 #3

P: 2
Hello,
Thanks you Sir

Hi,
I have a similar situation. I have 2 forms in single jsp, trying to submit both the forms with single submit button. How to go about it..

Any code snippets will be helpful.

thanks,
Raja
Dec 12 '06 #4

10K+
P: 13,264
Hi,
I have a similar situation. I have 2 forms in single jsp, trying to submit both the forms with single submit button. How to go about it..

Any code snippets will be helpful.

thanks,
Raja
[HTML]
onClick = "javascript:document.forms['formName'].submit()"
[/HTML]
Dec 12 '06 #5

P: 2
[HTML]
onClick = "javascript:document.forms['formName'].submit()"
[/HTML]
Thanks for your reply.
But when i submit sequentially, the first form get submitted and as a result the page get refreshed and the second form is not submitted.

thanks,
Raja
Dec 12 '06 #6

10K+
P: 13,264
Thanks for your reply.
But when i submit sequentially, the first form get submitted and as a result the page get refreshed and the second form is not submitted.

thanks,
Raja
Do you mean that you want 2 forms to be submitted at the same time to 2 different urls or both to be submitted at the same time to the same url
Dec 12 '06 #7

10K+
P: 13,264
Do you mean that you want 2 forms to be submitted at the same time to 2 different urls or both to be submitted at the same time to the same url
Also if you can please post the code that you already have
Dec 12 '06 #8

Post your reply

Sign in to post your reply or Sign up for a free account.