首页
给Boolean类型设置属性使用is方法。
精华吧
→
答案
→
慕课
→
未分类
给Boolean类型设置属性使用is方法。
A.正确
B.错误
正确答案:正确
Tag:
web开发技术基础
属性
类型
时间:2021-12-28 12:15:59
上一篇:
JavaBean规定成员变量的读/写通过setter()方法和getter()方法进行。
下一篇:
JavaBean有4个scope,它们分别是application、page、session、request。
相关答案
1.
在JSP中可以使用jsp:setProperty方法来设置JavaBean的属性,也可以使用 jsp:getProperty方法来获取JavaBean的值。
2.
JavaBean支持两种组件,即可视化组件、非可视化组件。
3.
在JavaBean中可以将控制逻辑、值、数据库访问和其他对象进行封装,并且可以被其他应用调用。
4.
给定TheBean类,假设还没有创建TheBean类的实例,以下()JSP标准动作语句能创建这个Bean的一个新实例,并把它存储在请求作用域。
5.
在项目中已经建立了一个JavaBean,其类为bean.Student,该Bean具有name属性,则下面标签用法正确的是()。
6.
使用jsp:getProperty动作标记可以在JSP页面中得到Bean实例的属性值,并将其转换为()类型的数据发送到客户端。
7.
关于JavaBean,下列叙述中不正确的是()。
8.
对于()作用范围的Bean,当客户离开这个页面时JSP引擎取消为客户的该页面分配的Bean,释放他所占的内存空间。
9.
()作用范围将使Bean对象保存在服务器的内存空间中,在服务器关闭后被移除。
10.
JSP页面通过()识别Bean对象,可以在程序段中通过xx.method形式调用Bean中的set和get方法。
热门答案
1.
JavaBean可以通过相关jsp动作指令进行调用。下面()不是JavaBean可以使用的jsp动作指令。
2.
JavaBean的属性必须声明为private,方法必须声明为()访问类型。
3.
下列关于JavaBean的说法正确的是()。
4.
过滤器的doFilter()函数在Servlet之后被调用。
5.
实现Filter接口的类需要重写init()方法、close()方法、doFilter()方法。
6.
Filter接口中最主要的方法是doFilter()。
7.
web、xml文件中的两种类型的参数为全局参数、局部参数。
8.
在Servlet中主要HttpServletResponse类的重定向方法forward()实现重定向,使用RequestDispatcher类的转发方法sendRedirect()实现转发功能。
9.
在Servlet程序中Servlet对象消亡时调用的方法是close()。
10.
Servlet为每一个HttpSession对象分配的唯一标识符是SessionID。