File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Is it ok that I put multiple forms in 1 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 » Frameworks » Struts
Bookmark "Is it ok that I put multiple forms in 1 JSP ?" Watch "Is it ok that I put multiple forms in 1 JSP ?" New topic
Author

Is it ok that I put multiple forms in 1 JSP ?

michelle Wang
Ranch Hand

Joined: Jan 12, 2004
Posts: 65
In order to handle multiple-action, I try to put in multiple forms in 1 JSP. So far it works fine.But I feel strange to do it in this way...Is it acceptable ?


michelle Wang <br />SCJP 1.4
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
if you have forms that do completely different things, then no, it's not strange; however, if you have multiple actions related to 1 form and duplicate the forms just to handle muliple actions, then yes, it's strange. struts DispatchAction and LookupDispatchAction allows for you to handle this scenario very efficiently.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it ok that I put multiple forms in 1 JSP ?
 
Similar Threads
How to handle multiple action with in one page?
multiple form related (wizard)
Multiple forms with Use bean.
Multiple forms using one Controller.
CardLayout kind of tabbes panes in HTML forms.