• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it good design having mutiple forms in a jsp

 
varaprasad mutyala
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Friends,

I need my JSP should contain multiple forms.

but my my doubt is is it good design. can i continue with my thoughts.

please help me out.

Thank You in Advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forms have nothing to do with JSP; they're an HTML concept. I've moved this to the HTML forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are talking about multiple sibling forms, there's no problem having more than one as long as you realize that only one can be submitted (at least until you bring Ajax into the picture).

If you are talking about nested forms, then it's not even a matter of design as that's just flat-out invalid.
 
bala nannaka
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think its not a good design in which you may loose the data entered by the users in different forms as only one form is submitted .try to move it into different pages
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I might rather not generalize. If the page provides seperate functionality, the idea of having multiple forms sounds good. Cause I would not expect the user to enter data on one portion of the screen, say a table/menu/form and expect the required functionality if he were to click on a button having a label which has no relavence to that on some other portion of the page.

Thanks,
Raj.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think its not a good design in which you may loose the data entered by the users in different forms as only one form is submitted .try to move it into different pages

I disagree - having multiple forms on a page is fine. It is the job of the UI designer to make sure that users do not get confused over what should be entered, and what gets submitted.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bala nannaka wrote: I think its not a good design in which you may loose the data entered by the users in different forms as only one form is submitted .try to move it into different pages

I routinely have multiple forms on the pages for different purposes. Sometimes the user doesn't even know that they're there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic