• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic