File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes multiple form in a single JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "multiple form in a single JSP" Watch "multiple form in a single JSP" New topic
Author

multiple form in a single JSP

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

can i create 2 or more form in a single jsp file(inside a body tag)..

please any one can explain me...

thanks & regards,
seetharaman.v
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
Yes, no problem. Just make sure that the forms don't overlap (in other words, close the first form tag before opening the second).
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

Otherwise, they would become 'nested forms'.

Moreover, make sure you give an unique name for each forms, if at all you are accessing the form elements by their name!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

thanks ulf and muthu ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple form in a single JSP