试题详情
- 单项选择题 You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which JSP code snippet should be used to make this menuvisible to the user?()
A、<% if ( request.isUserInRole("SalesManager") ) { %> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> <% } %>
B、<jsp:if test=’request.isUserInRole("SalesManager")’> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> </jsp:if>
C、<% if ( request.isUserInRole("SalesManager") ) { %> . <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> . <% } %>
D、<jsp:if test=’request.isUserInRole("SalesManager")’> <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> </jsp:if>
- A
关注下方微信公众号,在线模考后查看
热门试题
- import java.io
- 如何设置按钮变灰?()
- 现有: class&ens
- class A {
- 已知: 目录结构 那么要使源代码通过编
- 已知: 则在横线处添加哪些代码b的值为
- Given tutorial
- 创建Rodent(啮齿动物):Mouse
- 两个线程并发执行以下代码,假设a是全局变
- 下面哪个类表示在JTextField的按
- Given: 11.<% j
- For debugging&
- 1. class
- Which three&en
- 一个数如果刚好与它所有的因子之和相等,则
- C++中构造函数和析构函数可以抛出异常吗
- 设 x = 1 ,y = 2 , z =
- Given a class Repet
- Integer i&ensp
- 11. public