This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic