jsp和商务类 [英] jsp and business classes
本文介绍了jsp和商务类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
推荐答案
如果要使用复杂的类,那么JSP页面可能不是这种方法去.您最好从servlet构建页面.
如果您有很多样板内容和一些逻辑,请使用JSP.
如果逻辑很多,样板很少,请使用servlet.
您可以使用重定向,因此使用servlet构建数据,该servlet重定向到可以根据预先计算的值格式化页面的JSP.
If you are going to use complex classes, then JSP pages are probably not the way to go. You would be better off building the pages from a servlet.
If you have a lot of boiler plate and a little logic, use JSP.
If there is a lot of logic and a little boiler plate, use servlets.
You can use re-direction, so build up the data using a servlet, which redirects to a JSP that can format the page based on pre-calculated values.
这篇关于jsp和商务类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文