You should make each different arithmetic function its own action/method/whatevertheframeworkcallsit and you should use the frameworks input validation for the form values (if it has one).
你需要为每一种运算设置单独的动作,或者说方法(每个框架的叫法不一样),而且还要用到框架中的表单验证功能(如果框架提供了这一功能的话)。
In this section, we create a Action web service web service, and access the web service using the web_client_api function and the direct instance method invocation.
在本节中,我们将创建Action web Service web服务,并访问使用web_client_api函数的web服务和直接实例方法调用。
To enable this function, you wrap the name of each course in a h:commandLink that designates the method binding #{courseAction. selectCourse} as the action, as shown in Listing 9.
要实现这项功能, 在 h:commandLink 中包装各个课程的名称,h:commandLink 将方法绑定 #{courseAction.selectCourse} 指派成操作, 如清单 9 所示。
应用推荐