A much better idea is to place all your business logic into a controller servlet.
更好的办法是将所有业务逻辑放在一个控制器servlet (controller servlet)中。
Consider Listing 6, which illustrates a normal portion of code from a controller servlet.
考虑清单6,它展示了一个控制器servlet中普通的一段代码。
Used to make asynchronous requests to the Web server to retrieve the data through a controller servlet.
用于向Web服务器作出异步请求,以通过一个控制器servlet获取数据。
In terms of your JSP pages, you would simply change all links to point at your controller servlet, like this.
在jsp页面方面,简单地更改所有链接,使之指向您的控制器servlet,如下所示。
The Struts controller servlet handles run time events in accordance with a set of rules that are provided at deployment time.
Struts控制器servlet依照部署时所提供的一组规则来处理运行时事件。
The controller servlet accesses this ejb to obtain the list of categories to display. If you want to examine the source code, look under the ejb directory.
控制器servlet通过访问这个EJB来获得将要显示的类别的列表。
Cloudscape.ajax package — the application classes including the applet, a controller servlet, and classes to access the Derby database through the EmbeddedDataSource as well as an XML helper class.
ajax包——应用程序类,包括applet、一个控制器servlet以及用于通过EmbeddedDataSource访问Derby数据库的类,还有一个xml辅助类。
Cloudscape.ajax package — the application classes including the applet, a controller servlet, and classes to access the Derby database through the EmbeddedDataSource as well as an XML helper class.
ajax包——应用程序类,包括applet、一个控制器servlet以及用于通过EmbeddedDataSource访问Derby数据库的类,还有一个xml辅助类。
应用推荐