3、在 struts 开发中有页面内容: < a herf=”oprator.do?method=add”> 添加</a> < a herf=”oprator.do?method=modify”> 修改</a> 添加 修改 完成 struts-config.xml 的配置 <action path="/base" type="struts.action.BaseAction" /> 在下划线上填入()。A.parameter="action"B.parameter="method"C.attribute="method"D.attribute="action"

3、在 struts 开发中有页面内容: < a herf=”oprator.do?method=add”> 添加</a> < a herf=”oprator.do?method=modify”> 修改</a> 添加 修改 完成 struts-config.xml 的配置 <action path="/base" type="struts.action.BaseAction" /> 在下划线上填入()。

A.parameter="action"

B.parameter="method"

C.attribute="method"

D.attribute="action"


参考答案和解析
正确

相关考题:

以下选项中,正确的XML代码是(51)。A.<!--xml示例--> <?xml version="1.0" encoding="gb2312"> <?xml stylesssheet type="text/css" herf="mycss.css"?> <mytag>hellow world!</mytag>B.<?XML version="1.0" encoding="gb2312"> <?XML stylesssheet type="text/css" herf="mycss.css"?> <!--xml示例--> <mytag>hellow world!</mytag>C.<?XML encoding="gb2312" version="1.0"> <?xml stylesssheet type="text/CSS" herf="mycss.css"?> <!--xml示例--> <xmltag>hellow world!</xmltag>D.<!--xml示例--> <?xml version="1.0" encoding="gb2312"> <?xml stylesssheet type="text/css" herf="mycss.css"?> <xmltag>hellow world!</xmltag>

Dreamweaver 的修改(Modify)菜单中,Library→Add Object to Library 表示?A. 将页面上所有内容置于层中B. 将层中所有内容置于表格中C. 打开库选项板添加选定对象D. 在当前页或当前站点中替换修改过的库选项答案:C解析: or 设置表格格子的垂直对齐,设定单元格所对应的列数,设定单元格所对应的行数

下面有关Sturts2框架说法不正确的是()A、Strust2采用过滤器Dispatcher接货客户请求,确定适当的Action来对请求进行逻辑处理。B、Struts2中对应Action中只能采用execute方法用来进行信息(逻辑)处理。C、Struts也能采用其他方法(如find()),只需在struts.xml配置Action时,指定method参数。D、要使Struts2机制在web请求中生效,必须在Web.xml配置<filter>

Action类的execute方法返回的Action Forward对象name属性必须与struts-config.xml中元素的()属性匹配。A、forwardB、nameC、pathD、redirect

下面语句中,正确的是()A、public.class.AddAction.implements.Action{...B、mapping.findForward("/ch01/result.jsp")C、form.method="get"action="add.do"D、action.name="addAction"path="/add"type="com.svse.web.action.AddAction"

在Struts中,Dispatch Action和普通Action的配置不同的是()A、需要多配置一个可选的parameter属性B、需要多配置一个必须的parameter属性C、需要多配置一个可选的method属性D、需要多配置一个必须的method属性

要在表单中添加提交按钮,实现在用户单击“提交”按钮时,自动将表单提交道ACTION属性中指定的位置。下列语句正确的是()。A、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”button” VALUE=”提交”NAME=“b1”/FORM B、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”reset” VALUE=”提交”NAME=“reset1”/FORM C、FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”submit” VALUE=”提交”NAME=“submit1”/FORMD、 FORM  METHOD=”POST” ACTION=http://www.xmission.com INPUT TYPE=”submit” VALUE=”提交”NAME=“b1”/FORM

表示跳转到页面的”bn”锚点的代码是:()A、a link="#bn" ... /a B、a href="bn" ... /a C、a href="#bn" ... /a D、a herf="bn" ... /a

在Struts中,DispatchAction和普通Action的配置不同的是()A、需要多配置一个可选的parameter属性B、需要多配置一个必须的parameter属性C、需要多配置一个可选的method属性D、需要多配置一个必须的method属性

在struts的配置文件中,action节点的哪一个属性用来action指定引用的actionForm()A、nameB、attributeC、scopeD、path

对于struts-config.xml文件,在其中添加()元素以扩展struts的功能。A、form-beansB、controllerC、set-propertyD、plug-in

关于forward标签配置说法正确的是()A、forward标签只能配置在global-forwards元素中B、forward标签只能配置在action元素中C、struts-config.xml没有forward标签D、以上说法全部错误

下面语句中,正确的是()A、public.class.AddAction.implements.Action{...extends.ActionB、mapping.findForward("/ch01/result.jsp");findForward(“name”),new.ActionForward(“/ch01/result.jsp”)C、form.method="get"action="add.do"D、action.name="addAction"path="/add"type="y2ssh.sg.web.action.AddAction"Name指form的名字

对于struts-config.xml文件,在其中添加()元素以指定自定义的RequestProcessor类。A、form-beansB、controllerC、set-propertyD、plug-in

Spring包装Struts的动作说法正确的是()。A、Action配置的type属性还是指向自己的Action类B、Action配置的type属性不需要指向自己的Action类,但是Action要在Spring配置文件中配置C、Action配置的type属性一定要指向Spring提供的代理类,但是Action要在Spring配置文件中配置D、Action配置的type属性可以不指向Spring提供的代理类,可以利用Spring提供的中央处理器来处理,但是Action要在Spring配置文件中配置

struts-config.xml文件中,元素描述从特定的请求路径到相应的Action类的映射,下列对元素属性描述正确的有()A、className:和action元素对应的配置元素B、forward:转发的URL路径C、path:指定访问Action关联的路径,以“&”开头,无扩展名D、name:指定和Action关联的ActionFormBean的名字

You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls. You need to ensure that the child controls are properly output to the browser. Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do? ()A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class.C、Override the CreateChildControls method of the base class. Add the child controls to the base container.D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.

You are implementing an ASP. NET MVC 2 Web application. You add a controller named Company Controller. You need to modify the application to handle the URL path /company/info. Which two actions should you perform?()A、Add the following method to the CompanyController class. Function Info() As ActionResult   Return View() End FunctionB、Add the following method to the CompanyController class. Function Company_Info() As ActionResult  Return View() End FunctionC、Right-click the Views folder, and select View from the Add submenu to create the view for the action.D、Right-click inside the action method in the CompanyController class, and select Add View to create a view for the action

You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()A、The method must return a type of either IEnumerator or IEnumerable.B、The method must return a type of IComparable.C、The method must explicitly contain a collection.D、The method must be the only iterator in the class.

You are implementing an ASP.NET MVC 2 Web application. The URL with path /Home/Details/{country} will return a page that provides information about the named country. You need to ensure that requests for this URL that contain an unrecognized country value will not be processed by the Details action of HomeController. What should you do?()A、Add the ValidateAntiForgeryToken attribute to the Details action method.B、Add the Bind attribute to the country parameter of the Details action method. Set the attribute’s Prefix property to Country.C、Create a class that implements the IRouteConstraint interface. Configure the default route to use this class.D、Create a class that implements the IRouteHandler interface. Configure the default route to use this class.

You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows:void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()A、Add the WebInvoke(UriTemplate="/Items/{id}", Method="DELETE") attribute to the operationB、Add the HttpDelete atribute to the operationC、Replace the string parameter with a RemovedActivityAction parameterD、Replace the return type with RemovedActivityAction.

单选题在Struts中,DispatchAction和普通Action的配置不同的是()A需要多配置一个可选的parameter属性B需要多配置一个必须的parameter属性C需要多配置一个可选的method属性D需要多配置一个必须的method属性

单选题在Struts中,Dispatch Action和普通Action的配置不同的是()A需要多配置一个可选的parameter属性B需要多配置一个必须的parameter属性C需要多配置一个可选的method属性D需要多配置一个必须的method属性

单选题对于struts-config.xml文件,在其中添加()元素以指定自定义的RequestProcessor类。Aform-beansBcontrollerCset-propertyDplug-in

单选题下面有关Sturts2框架说法不正确的是()AStrust2采用过滤器Dispatcher接货客户请求,确定适当的Action来对请求进行逻辑处理。BStruts2中对应Action中只能采用execute方法用来进行信息(逻辑)处理。CStruts也能采用其他方法(如find()),只需在struts.xml配置Action时,指定method参数。D要使Struts2机制在web请求中生效,必须在Web.xml配置<filter>

多选题You are implementing an ASP. NET MVC 2 Web application. You add a controller named Company Controller. You need to modify the application to handle the URL path /company/info. Which two actions should you perform?()AAdd the following method to the CompanyController class. Function Info() As ActionResult   Return View() End FunctionBAdd the following method to the CompanyController class. Function Company_Info() As ActionResult  Return View() End FunctionCRight-click the Views folder, and select View from the Add submenu to create the view for the action.DRight-click inside the action method in the CompanyController class, and select Add View to create a view for the action

单选题对于struts-config.xml文件,在其中添加()元素以扩展struts的功能。Aform-beansBcontrollerCset-propertyDplug-in

单选题You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?()AAjaxHelperBXDocumentCJsonResultDDataContractJsonSerializer