Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Multiple forms in JSP

Ads

 
 

Share on Google+Share on Google+

nyamath
Multiple forms in JSP
1 Answer(s)      8 years ago
Posted in : JSP-Servlet
Ads
View Answers

January 30, 2009 at 5:54 AM


<html>
<head>
<SCRIPT>
function submitFunction(i) {
if (i=='Roseindia') document.theForm.action="http://www.roseindia.net";;
if (i=='Newstrackindia') document.theForm.action="http://www.newstrackindia.com";;
if (i=='Javajazzup') document.theForm.action="http://www.javajazzup.com";;
document.theForm.submit()
}
</SCRIPT>
</head>
<body>
<h1>Multiple Buttons Example</h1>
<FORM NAME="theForm">
<INPUT TYPE="button" VALUE="Roseindia" onClick="submitFunction('Roseindia')">
<INPUT TYPE="button" VALUE="Newstrackindia" onClick="submitFunction('Newstrackindia')">
<INPUT TYPE="button" VALUE="Javajazzup" onClick="submitFunction('Javajazzup')">
</FORM>

</body>
</html>



Thanks
Vinod Kumar

Ads









Related Tutorials/Questions & Answers:
Multiple forms in JSP - JSP-Servlet
Multiple forms in JSP   Hi, I want to place multiple submit buttons in jsp pages ! and the multiple buttons will perform multiple actions...://www.javajazzup.com"; document.theForm.submit() } Multiple Buttons Example
JSP WITH MULTIPLE FORMS
JSP WITH MULTIPLE FORMS     ... in single jsp page. Most of the times people need to use multiple forms...;font size="5" color="#333399">JSP WITH MULTIPLE FORMS <
Advertisements
Multiple Forms in JSP
Multiple Forms in JSP      ... can contain checkboxes, textfields, radio- buttons and many more. Forms are used... attributes, first is action: Here is the address of the jsp page or any other page
inteconnecting forms - JSP-Servlet
database. i am creating some forms using jsp. i want to enter the name of the table... will be helpful for you. step1) Create a form in jsp page to enter table name...,create another jsp page. database connectivity Thanks
Multiple upload - JSP-Servlet
Multiple upload  Hello everyone and Deepak i am using jsp and mysql I am using the program published on roseindia.net of Multiple upload and i am facing an error as given below please help and reply soon this is my 8th
JSP - Abobe Interactive Forms - JSP-Servlet
JSP - Abobe Interactive Forms  Dear Gurus, Hi! I have a problem... TomCat Webserver. I dont know how to proceed. I have to make a JSP page which... to capture all the data that are are sending. My website is JSP based. Could
multiple form with multiple function in 1 jsp - JSP-Servlet
in triggering my jsp with 2 forms as 1 for registration and 1 for log in. I need to trigger each form to call several function when user click buttons of these forms...multiple form with multiple function in 1 jsp  Hi, I'm using Netbean
Email to multiple recipients using jsp
Email to multiple recipients using jsp  Hi sir, Am a doing a project,in that i need to send email to multiple user at a time,the to address should enter manually its not not be written in code using jsp. Regards, Santhosh
Email to multiple recipients using jsp
Email to multiple recipients using jsp  Hi sir, Am a doing a project,in that i need to send email to multiple user at a time,the to address should enter manually its not not be written in code using jsp. Regards, Santhosh
Multiple file Uploading - JSP-Servlet
Multiple file Uploading   Hello everyone I am using jsp and my IDE is eclipse and back end is ms sql server i am trying to upload multiple... that is raised: 16:37:14,612 ERROR [[jsp]] Servlet.service
update multiple rows in jsp - JSP-Servlet
update multiple rows in jsp  Hi I am trying to do a multiple row update in JSP. code as follows.. > Can you please tell me how to get this form values in actio page  Hi Friend
Uploading Multiple Files Using Jsp
Uploading Multiple Files Using Jsp  ... to understand how you can upload multiple files by using the Jsp. We should avoid to use Jsp for performing any logic, as Jsp is mainly used for the presentation
Multiple image upload using JSP
Multiple image upload using JSP  I have written a code to upload the multiple images using jsp, but when I execute this code, it throws Corrupt form... type="file" name="file[]" multiple > <INPUT type="submit" value="Send
Uploading multiple files in JSP - JSP-Servlet
Uploading multiple files in JSP  Hi, I have this code in JSP for Uploading multiple files : Samples : Simple Upload.../jsp/file_upload/uploadingMultipleFiles.shtml Hope that it will be helpful
How to pass multiple values from a servlet to JSP?
How to pass multiple values from a servlet to JSP?  hi, I want to pass multiple values form a servlet to JSP. Hw do i do that? I am able to send one value at a time without any prb, but I am unable to carry multiple (from two
multiple browsers in java script - JSP-Servlet
multiple browsers in java script  How to make my jsp browser specific?  Hi friend, For solving the problem visit to : http://www.roseindia.net/jsp/simple-jsp-example/JSPPlugins.shtml Thanks
How to carry multiple values from a Servlet to a JSP?
How to carry multiple values from a Servlet to a JSP?  By using the below code I am able to carry the username to a JSP (single value). ----response.sendRedirect("index.jsp?uname="+username);---- But I want multiple values
How to display multiple images in jsp
How to display multiple images in jsp  <%@ page import="java.io.*"%> <[email protected] import="book.Databasecon"%> <%@ page import="java.sql.*,java.util.*"%> <%!OutputStream o; %> <%!ArrayList<Blob> bl
get value from multiple textbox in jsp
get value from multiple textbox in jsp  how to get multiple textbox value in another jsp? If i using the following code <%for(int i=0;i<3;i++) {%> <td>name<input type="text" class="name" id="name">
problem of static in jsp page by multiple user access
problem of static in jsp page by multiple user access  hi , i am continuing my online exam project,but i have a Singleton class which i am invoking from my jsp page , ths page can access by more number of users .every user
how to send mail with multiple attachments in jsp
how to send mail with multiple attachments in jsp  how to send mail with multiple attachments in java script
multiple dropdowns in single page - JSP-Servlet
multiple dropdowns in single page  i have a jsp page having drop down menus generated based on the number of request send and name of the drop down... the below servlet my jsp Untitled Document
use forms.
use forms.  How do I use forms
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?
servlet,jsp login registration forms without database in ecalipse ide using hashmap to store the registraion details ?   first registration with email , username, password after >> <> without
java multiple users with single connection - JSP-Servlet
java multiple users with single connection  hi, my problem... it for multiple users who uses a single connection to the database simultaneously... of the above websites uses a single connection with multiple users. n