2

Is it better to dynamically build a table then initiate a datatable, or use scriptlets and then build the datatable? I've read and rethought about how I should approach this. I currently have it working both ways, but I've reading about the advantages/disadvantages of ajax/back/forward/state... It's much easier with scriptlets since I really don't have to worry/handle those situations, especially on refresh/backbutton/forward, but with ajax I have to handle all that personally. What would you pick and why?

4

1 回答 1

1

scriptlet 通常不受欢迎,因为它们破坏了 MVC 模型,

这个网站解释得更好 https://www.coderanch.com/how-to/java/WhyNotUseScriptlets

于 2012-09-12T04:19:31.317 回答