aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes is it good design having mutiple forms in a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "is it good design having mutiple forms in a jsp" Watch "is it good design having mutiple forms in a jsp" New topic
Author

is it good design having mutiple forms in a jsp

varaprasad mutyala
Greenhorn

Joined: Jun 11, 2009
Posts: 17

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

Joined: Jan 10, 2002
Posts: 61747
    
  67

Forms have nothing to do with JSP; they're an HTML concept. I've moved this to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61747
    
  67

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

Joined: Apr 02, 2007
Posts: 49
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

Joined: Mar 02, 2005
Posts: 443
    
    1

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
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
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

Joined: Jan 10, 2002
Posts: 61747
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it good design having mutiple forms in a jsp