Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Two forms and One Servlet
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


gautamshetkar
Two forms and One Servlet
1 Answer(s)      3 years and 4 months ago
Posted in : JSP-Servlet


Dear Sir, I have 2 forms in one page and one submit button into second form which submits data to one servlet. If I do request.getparameter("") from first form textbox name I got null value. How do I get both forms textbox value. Thanks in advance.


Advertisement
View Answers

June 13, 2011 at 6:19 PM


Hi gautamshetkar

Without using the submit button or javascript/jQuery, you can't post the form data defined in action tag of the form.

You Need to put all the field to one form in HTML and in design show it like it is two form.

Hope this will solve ur problem...



Related Tutorials/Questions & Answers:
Two forms and One Servlet
Two forms and One Servlet  Dear Sir, I have 2 forms in one page and one submit button into second form which submits data to one servlet. If I do... get both forms textbox value. Thanks in advance
Two forms submission to one Action Class in Struts2.0
Two forms submission to one Action Class in Struts2.0  Hi, I have two forms.I want to submit two forms with only one submit button to the same action, same method. How can i get this. Please reply me
Advertisements
inteconnecting forms - JSP-Servlet
inteconnecting forms  hi, i have several tables in mysql database. i am creating some forms using jsp. i want to enter the name of the table... webpage.it should be something like student registration form. can any one tell me
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 based on the click of those buttons !   function
Two Pagination in one page
Two Pagination in one page  hai friends any one help me. how do u make two pagination script in same page i'm used some ajax coding one pagination script is working but another pagination is not working please help me urgent
how to do two database tables in one page?
how to do two database tables in one page?  dear all: i want to show these two database tables in one page. one table on the left (dbtable.jsp) and the other on the right (table2.jsp). how can i do that with HTML? this is my
use forms.
use forms.  How do I use forms
how to seperation one file into two - Java Interview Questions
how to seperation one file into two  hi can anyone tell me how to seperation one file into two so that the data inside e.g a=apple will get seperated and comes as a in one file and apple in another
JSP WITH MULTIPLE FORMS
on a single page. For example on one web page you may add forms for login, search... JSP WITH MULTIPLE FORMS       In  this example, you will learn how to make multiple forms
What are different normalization forms?
What are different normalization forms?  What are different normalization forms?   Hi, 1NF: Eliminate Repeating Groups- Make a separate... field contains at most one value from its attribute domain. 2NF: Eliminate
how to set the tables one is left and another one is right - JSP-Servlet
how to set the tables one is left and another one is right  Here two tables are combined.i need to set the one table is left another one is right and ineed to gap between the two tables Document document=new Document
urgent need in two days - JSP-Servlet
; version="2.4"><servlet> <servlet-name>InsertDataExample</servlet-name> <servlet-class>DataInsertServletExam</servlet-class> </servlet> <servlet-mapping> <servlet-name>
what is difference between one-way data binding and two-way data binding?
what is difference between one-way data binding and two-way data binding?  what is difference between one-way data binding and two-way data binding? Thanks
How to include Two multi rows, one with a file Upload and another with normal fields, have problem while including both
How to include Two multi rows, one with a file Upload and another with normal fields, have problem while including both  How to include Two multi rows, one with a file Upload and another with normal fields, have problem while
How to solve concurrency issue when an application is running on two machine to fetch record from one database
How to solve concurrency issue when an application is running on two machine to fetch record from one database  I have developed an application in java to run on two machines. Program will fetch a record from database and process
tables to structure forms
tables to structure forms  How can I use tables to structure forms
tables to structure forms
tables to structure forms  How can I use tables to structure forms
use tables to structure forms
use tables to structure forms  How can I use tables to structure forms
use tables to structure forms
use tables to structure forms  How can I use tables to structure forms
JAVA BEAN WITH ORACLE FORMS
JAVA BEAN WITH ORACLE FORMS  Hi..I am doing my final year Project.. I need the ste-by-step procedure to integrate a bean with oracle forms? Please help me
in the below code two errors are there one at the button onclick atttibute and the next is at the next button
in the below code two errors are there one at the button onclick atttibute and the next is at the next button  <%@ page import="java.sql.*" %> function editRecord(id){ var f=document.form; f.method="post
How to compare two tables, and insert values which r not in one table to another table?
How to compare two tables, and insert values which r not in one table to another table?  Hi I need to compare two tables MainTable and OUTTable, The maintable may not have all the data so...if outtable have new data just
Date forms
Date forms       In this section we are demonstrating the retrieval of date from the Date object in various forms. In the following code segment we are performing
have any one tried ajaxanywhere with jsp/servlet please provide sample
have any one tried ajaxanywhere with jsp/servlet please provide sample  hello you can find this app here: http://ajaxanywhere.sourceforge.net it explains how to use this with struts but not with simple jsp servlet(or i am
display diffrence between two dates in a text box - JSP-Servlet
display diffrence between two dates in a text box  i have these set of codes // String di=request.getParameter("timestamp2"); String d2=request.getParameter("timestamp3"); SimpleDateFormat formater=new SimpleDateFormat("dd-mm
error got minus one from read call - JSP-Servlet
error got minus one from read call  hiiii while connecting my servlet... minus one from a read call oracle.jdbc.dbaccess.DBError.throwSqlException...) the code is as follows: // *DataBase Connectivity from the Servlet. import
calling one jsp from another jsp - JSP-Servlet
calling one jsp from another jsp  Hi All, In my web application I have two jsp files(one.jsp and two.jsp). I have written a seperate method in two.jsp by using jsp declarative tag. Now from one.jsp file I want to call
how to pass an array from one jsp to another jsp - JSP-Servlet
how to pass an array from one jsp to another jsp  hi friedns, can any One tell me how to send an array from one jsp to another jsp,pls any one send the code for this.also porvid the code how to retrive the arry in another jsp
1 Access Infotech Number one Company - Servlet Interview Questions
1 Access Infotech Number one Company  1 Access Infotech is Number one Company who know the feelings of cutomers feel free ask any query Access Infotech Pvt. Ltd. Unit 5B, 4th Floor, Topaz Building, Punjagutta
jsf forms - Java Server Faces Questions
jsf forms  Hi, I have some queries in jsf forms please solve... to set a table in center. 4.i need one table and one image at one row tell me how to do this one. 5.how to set font color in a table(if table bgcolor is blue
Advertisements
 

 

 

DMCA.com