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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Marshal

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


Ping & DNS - updated with new look and Ping home screen widget
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

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
 
Similar Threads
Hook a successful form based login
Doubt on Q12(page461) from SCWCD
First struts app help! Drop-down lists
How to use "Map Backed Action Forms"
from submission