473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Submit Button in JSP

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

Thanks in Advance
P.Padmanabhan
Nov 23 '06 #1
7 7101
PLA
44
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
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
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
r035198x
13,262 8TB
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
[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
r035198x
13,262 8TB
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
r035198x
13,262 8TB
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

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

Similar topics

3
by: Matt | last post by:
I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form...
2
by: jb | last post by:
Hello, I need to know which button was pressed in the submit , i tried reading the vaule of submit it the validateDate function but it returns 'undefined' value ; I do this in asp all the time, Not...
15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
3
by: Adam | last post by:
Hey guys, I've decided to stop banging my head against the wall and just ask you guys for the answer. I can't seem to find it. I have a form in which I have multiple submit buttons; only, I'm...
8
by: bettina | last post by:
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
10
by: ljlolel | last post by:
So.. I have a form that submits to an ASP.net site made in C-sharp. The ASP site is not mine, i do not have the server side code. When I submit from my form by pressing the Submit button, I get...
10
by: The Natural Philosopher | last post by:
I am coding up a bit of javascript stuff, and have managed to stumble my way through most of what I want.. But this one has got me stumped. I call submit() and get a javascript error 'Submit...
4
by: j1dopeman | last post by:
Hi, I'd like to use a button to save and then submit a form. I can set the onlick of the button to mahButton_click or submit, but I can't figure out how to do both. It looks like c# can't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.