wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes 2 forms in a single page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "2 forms in a single page" Watch "2 forms in a single page" New topic
Author

2 forms in a single page

k bben
Greenhorn

Joined: Dec 29, 2004
Posts: 1
can i have more than one form in a page?
if yes, how do i submit all of them at one shot

function f1(){

document.form1.submit();
document.form2.submit();
}

it is a html page with javascript on it .
the page is created by a servlet
[ December 29, 2004: Message edited by: k bben ]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
I guess you're talking about JSPs?

yes, you can have more than one form on a page.
no, you cannot submit them all at once.


42
Martin Lerchster
Greenhorn

Joined: Nov 29, 2004
Posts: 10
All information you need for one submit you should have in one form!


Why do you need the second one and why do you want to submit both?

wr
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 forms in a single page
 
Similar Threads
prevent form double submit
Submitting multiple parameters on jsf
Response is displayed but IE status bar is still loading
Opening Next Page in New Window
Pass objects through form submit