网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 

  • A、request.getAttribute(“habit”);
  • B、request.getParameter(“habit”)
  • C、request.getParameterValues(“habit”)
  • D、request.getHabit();

参考答案

更多 “如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 A、request.getAttribute(“habit”);B、request.getParameter(“habit”)C、request.getParameterValues(“habit”)D、request.getHabit();” 相关考题
考题 Struts中标记库的描述正确的是() A.Bean标记用来在JSP页中管理beanB.Logic标记用来在JSP页中控制流程C.HTML标记用来生成HTML标记,在表单中显示数据D.模板标记使用动态模板构造普通格式的页,使用会话ID对URL进行编程

考题 在J2EE中,对于标记,描述正确的是()。 A.jsp:param是jsp:include、jsp:forward标记的子标记B.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D.如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 A.request.getAttribute(“habit”);B.request.getParameter(“habit”)C.request.getParameterValues(“habit”)D.request.getHabit();

考题 ● 语句(43)用于在HTML表单中添加默认选中的复选框。(43)A. input type=radio name=s checkedB. input type=radio name=s enabledC. input type=checkbox name=s checkedD. input type=checkbox name=s enabled

考题 jsp:param标记可用于将附加request参数发送至转发的页,有name和value两个属性。() 此题为判断题(对,错)。

考题 下面哪些jspaction中允许使用表达式(expression)?() A、jsp:setPropertyname=”name”value=%=expression%B、jsp:includepage=%=expresion%C、jsp:paranname=”name”value=%=expression%D、jsp:getPropertyname=%expression%

考题 语句(43)用于在HTML表单中添加默认选中的复选框。A.B. 语句(43)用于在HTML表单中添加默认选中的复选框。A.<input type=radio name=s checked>B.<input type=radio name=s enabled>C.<input type=checkbox name=s checked>D.<input type=checkbox name=s enabled>

考题 在 Web 服务器端有一个表单文件如下:htmlheadtitlecheck/title/headbodyform. action=”check.jsp” method=”post”Please input your name and password:brusername: input type=”text” name=”username”brpassword: input type=”password” name=”usrpwd”brinput type=”submit” name=”confirm” value=”confirm”/form/body/html现在需要在 check.jsp 文件中实现如下功能:对用户输入的用户名和密码进行检查,如果合法,则在网页中直接输出字符串”login success”;如果不合法,则直接在网页中输出字符串”login failure”;假定该网站的用户信息被保存在数组 s[]={”jack”,”jack2006”}中,s[0]为用户名,s[1]为用户密码。请问 check.jsp 应该如何利用脚本实现上述功能,写出完整的程序代码。不考虑用户输入中文字符的情况。提示:可调用字符串自带的 equals()方法进行合法的用户名和密码与用户输入参数的比较。

考题 如果要将菜单文件添加到顶层表单中,必须在【 】对话框中勾选"顶层表单"复选框。

考题 橙子建站营销组件中,有几种表单形式?()A、落地页表单B、附加创意表单C、原生落地页表单D、智能建站表单

考题 如果想在JSP页面中声明一个名字为name的变量,应该使用()标签。 A、 c:if B、 c:set  C、 c:out  D、 c:forEach 

考题 Struts中标记库的描述正确的是()     A、Bean标记用来在JSP页中管理beanB、Logic标记用来在JSP页中控制流程C、HTML标记用来生成HTML标记,在表单中显示数据D、模板标记使用动态模板构造普通格式的页,使用会话ID对URL进行编程

考题 在J2EE中,对于标记,描述正确的是()。     A、jsp:param是jsp:include、jsp:forward标记的子标记  B、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getParameter("name");把属性name的值取出来 C、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getAttribute("name");把属性name的值取出来 D、如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 下列语句正确的有()A、%@ include file=”head.jsp”% B、% String url=”head.jsp”;%%@ include file=”url”% C、%@ include file=”head.jsp”?name=”lovo”% D、%String companyName=”lovo”;%%@include file”head.jsp”?name=‟companyName”% 

考题 表单元素复选框的代码为()。A、<inputtype="text"name="..."size="..."maxlength="..."value="...">B、<textareaname="..."cols="..."rows="..."wrap="...">C、<inputtype="checkbox"name="..."value="...">D、<inputtype="radio"name="..."value="...">

考题 表单中同一组中多个复选框()。A、name值相同,而value值不同B、name值不同,而value值相同C、同一时刻只能选取一项D、相互不相关

考题 如果想要在JSP中使用user包中的User类,则以下写法正确的是()。 A、 jsp:useBean id="user" class="user.User" scope="page"/B、 jsp:useBean class="user.User.class" / C、 jsp:useBean name="user" class="user.User"/D、 jsp:useBean id="user" class="User" import="user.* "/

考题 设某表单上有一个页框控件,该页框控件的PageCount属性值在表单的运行过程中可变(即页数会变化)。如果要求在表单刷新时总是指定页框的最后一个页为活动页,则可在页框控件的refresh方法代码中使用语句:This.()=This.PageCount

考题 在JSP页面中使用〈jsp:setProperty name="bean的名字" property ="*"/〉格式,将表单参数为Bean属性赋值,property="*"格式要求Bean的属性名字()。A、必须和表单参数类型一致B、必须和表单参数名称一一对应C、必须和表单参数数量一致D、名称不一定对应

考题 You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 多选题在J2EE中,对于标记,描述正确的是()。Ajsp:param是jsp:include、jsp:forward标记的子标记B如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 单选题要在表单中添加复选框,TYPE的属性值应设置为()。A submitB radioC checkboxD password

考题 单选题如果想要在JSP中使用user包中的User类,则以下写法正确的是()。A  jsp:useBean id=user class=user.User scope=page/B  jsp:useBean class=user.User.class / C  jsp:useBean name=user class=user.User/D  jsp:useBean id=user class=User import=user.* /

考题 单选题表单中有一个包含5个页面的页框控件,运行表单时,若要设置页框的第2页为活动页面,则应把页框的()属性设置为2。A CountB ActivePageC PageCountD TabIndex

考题 单选题You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()A jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 单选题下列语句正确的有()A %@ include file=”head.jsp”% B % String url=”head.jsp”;%%@ include file=”url”% C %@ include file=”head.jsp”?name=”lovo”% D %String companyName=”lovo”;%%@include file”head.jsp”?name=‟companyName”% 

考题 单选题在JSP页面中使用〈jsp:setProperty name="bean的名字" property ="*"/〉格式,将表单参数为Bean属性赋值,property="*"格式要求Bean的属性名字()。A 必须和表单参数类型一致B 必须和表单参数名称一一对应C 必须和表单参数数量一致D 名称不一定对应

考题 多选题如果想在JSP页面中声明一个名字为name的变量,应该使用()标签。Ac:ifBc:setCc:outDc:forEach