This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
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
posted 11 years ago
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>