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中普通的一段代码。
JSF USES it to configure the JSF controller servlet and Seam USES it intercept all web requests.
JSF用它来配置JSFservlet控制器,Seam用它来拦截所有的web请求。
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 is an instantiation of class org.apache.struts.action.ActionServlet (hereafter called ActionServlet).
控制器servlet是or g . apache . struts . action . ActionServlet(以下简称ActionServlet)类的实例化。
All in all, if you've gone to the trouble of using a controller servlet, you'll almost always benefit from using a full-fledged Web framework.
总而言之,如果您在使用控制器servlet时遇到了麻烦,那么使用功能全面的Web框架一定会使您授意颇多。
As was the case with the HelloServlet bundle, it is necessary to re-register the controller servlet, the resources, and the Hamlet that provides the view.
与HelloServlet bundle的情况一样,我们需要重新注册控制器servlet、资源和能提供视图的Hamlet。
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来获得将要显示的类别的列表。
The validate method is called by the controller servlet after the bean properties have been populated, but before the AddABookActionperform method is invoked.
这个validate方法由控制器servlet在bean属性被植入之后而在AddABookActionperform方法被调用之前进行调用。
Instead, you simply open up your controller servlet and change the single constant referring to account-information.jsp to account-summary.jsp, as shown in Listing 9.
您可以打开控制器servlet,只要将那一个引用account - information . jsp的常量改为引用account - summary . jsp即可,如清单9所示。
A controller servlet, servlets.GoogleSearchServlet, that calls the model, proxy.soap.GoogleSearchProxy, and obtains a reference to an array of mappings.ResultElementContentType data objects.
一个控制器servlet,servlets . GoogleSearchServlet,它调用模型proxy . soap .GoogleSearchProxy并获取到一系列mappings .ResultElementContentType数据对象的引用。
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辅助类。
In Model-View-Controller (MVC) parlance, I need a controller, which is often a servlet; I'll leverage a Groovlet instead because I'd rather write less code.
按Model - View - Controller (MVC)的话说,我需要一个控制器(通常为一个servlet);我将利用Groovlet替代,因为我希望编写更少的代码。
Serves HTML pages and acts as a controller through a servlet for database requests
提供HTML页面,并通过一个servlet充当数据库请求的控制器
After a successful response, the innerHTML property of the DIV element is populated with transformed XML (or HTML) returned by the servlet controller.
响应成功之后,DIV元素的innerhtml属性将被由servlet控制器返回的经过转换的XML(或HTML)填充。
This will pass execution on through to the servlet controller to the session bean on to the entity bean.
这将使执行转移到servlet控制器,然后转到会话bean,再转到实体 bean。
The view, an instance of CoffeeMachine, is a Hamlet, and the controller, an instance of CoffeeMachineController, is a servlet (see Figure 7).
视图是CoffeeMachine的一个实例,是一个Hamlet,而控制器则是CoffeeMachineController的一个实例,是一个servlet(如图7所示)。
In the middle of the SQD is the reservation servlet, which is a controller that knows the steps that have to be carried out to allow a customer to reserve a vehicle.
在序列图的中间是预约servlet,作为控制器它掌握客户预约车辆时需要执行的所有步骤。
In it, a single servlet processes view, model and controller logic.
在这个反模式中,一个单独的servlet将处理视图、模型以及控制器逻辑。
But in our case, because the servlet actually creates the downstream view, we need additional components to wrap our controller and model logic.
但在我们的示例中,因为servlet实际上创建了下行视图,所以我们需要另外的组件来包装控制器和模型逻辑。
In the J2EE Model 2 architecture, a servlet is the UI controller, responsible for getting input data, calling some back-end business logic, and then deciding what JSP to forward to.
在J2EEModel2体系结构中,Servlet是UI控制器,负责获取输入数据,调用某些后端的业务逻辑,然后决定转发到哪一个JSP。
The controller is provided by a servlet that runs in the embedded Jetty Web server, and the Derby database ACTS as the back end and represents the model layer for the application.
控制器由一个servlet提供,该servlet运行在嵌入式JettyWeb服务器中,而Derby数据库则充当后端,表示该应用程序的模型层。
The solution to this problem is to refactor with a modified model-view-controller that is more appropriate for servlet-based programming.
这个问题的解决方案是使用一种修改过的、更适合基于servlet编程的模型-视图-控制器来进行重构。
The Controller — Life cycle events and servlet filters
Controller ——生命周期事件和servlet过滤器
The Controller is made up of the JSF layer with servlet listeners and filters that are unrelated to JSF but enhance the functionality of the Web application.
Controller是由jsf层及servlet侦听器和servlet过滤器组成,servlet侦听器和servlet过滤器与JSF无关,但增强了Web应用程序的功能。
The servlet acts in the role of a controller, coordinating the steps needed to carry out the work of the Reserve a Vehicle use case.
该servlet以控制器的角色出现,协调预约车辆用例工作中需要完成的各个步骤。
The upstream view invokes the servlet controller via HTTP.
上行视图通过http调用servlet控制器。
Servlet filters can also be considered part of the Controller layer of a Web application.
也可以将servlet过滤器看作是Web应用程序的controller层的一部分。
应用推荐