试题详情
- 单项选择题 Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()
A、Store the data in a public instance variable in the servlet.
B、Add an attribute to the request object before using the request dispatcher.
C、Add an attribute to the context object before using the request dispatcher.
D、This CANNOT be done as the tag handler has no means to extract this data.
- B
关注下方微信公众号,在线模考后查看
热门试题
- A class
- java中下面哪个能创建并启动线程()。
- public class&e
- 已知: 下面哪些语句在横线处可以正常编
- 对于利用消息框类(JOptionPane
- You are c
- // Point
- 如何创建一个表格包型布局管理器的约束对象
- 现有2个文件:
- 关于AWT和Swing说法正确的是()。
- public class&e
- 输入数组,最大的与第一个元素交换,最小的
- Given the&ensp
- 现有: import&en
- class A {
- What is th
- 以下的Java程序代码中,错误的行是()
- Given the&ensp
- 创建一个服务器,用它请求用户输入密码,然
- 一般来说,列表框中包括的项目数都多于它能