This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes multiple form in a single JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 35253
    
    7
Yes, no problem. Just make sure that the forms don't overlap (in other words, close the first form tag before opening the second).


Android appsImageJ pluginsJava web charts
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3327

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: multiple form in a single JSP
 
Similar Threads
Doubt on Q12(page461) from SCWCD
First struts app help! Drop-down lists
How to use "Map Backed Action Forms"
from submission
Hook a successful form based login