英语和jsp好的高手进!拜托了

aiweier1986 aiweier1986 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
第一题
Your web application has a valid dd with a single <security-constraint> tag.
Within this tag exists:
- a single http method that declares GET
All of the resources in your application exist within directory1 and directory2 and the only defined roles are BEGINNER and EXPERT.
If you want to restrict BEGINNERs from using resources in directory2, which are true about the url and role tag(s) you should declare? (Choose all that apply.)
A. A single url tag should declare directory1 and a single role tag should declare EXPERT.
B. A single url tag should declare directory2 and a single role tag should declare EXPERT.
C. A single url tag should declare directory1 and a single role tag should declare BEGINNER.
D. A single url tag should declare directory2 and a single role tag should declare BEGINNER.
E. One url tag should declare ANY and its role tag should declare EXPERT, and another url tag should declare directory2 and its role tag should declare BEGINNER.
F. One url tag should declare both directories, and its role tag should declare EXPERT, and another url tag should declare directory1 and its role tag




上题为什么不选B(正确答案为D),题中要求限制BEGINNER啊,D选项不等于容许BEGINNER访问吗?



第二题
Given:
01. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
02.
03. <%
04. java.util.List books = new java.util.ArrayList();
05. // add line here
06. request.setAttribute("myFavoriteBooks", books);
07. %>
08.
09. <c:choose>
10. <c:when test="${not empty myFavoriteBooks}">
11. My favorite books are:
12. <c:forEach var="book" items="${myFavoriteBooks}">
13. <br/> * ${book}
14. </c:forEach>
15. </c:when>
16. <c:otherwise>
17. I have not selected any favorite books.
18. </c:otherwise>
19. </c:choose>
Which of the following lines of code, if inserted independently at Line 5, will cause the text within the c:otherwise tag to display? (Choose all that apply)
A. books.add("");
B. books.add(null);
C. books.clear();
D. books.add("Head First");
E. books = null;



答案是B、D,我十分不解为啥会选D,我认为C也对啊,E将books置为Null也可以通过empty的测试啊
第三题
<%= out.print('${something}')>这样对吗?EL可以写在里面吗?


欢迎高手前来赐教,感激不尽!
...全文

相关推荐

计算机求职意向简历.pdf

计算机求职意向简历.pdf

是空空呀

全面计算机英语单词学习系统:基于JavaEE与JSP

本文还有配套的精品资源,点击获取 简介:本项目介绍了一个基于JavaEE技术的计算机英语单词学习系统,通过JSP网页设计和SqlServer数据库实现在线学习平台。系统提供个性化和交互式的单词学习体验,结合了JavaEE框架、JSP和Servlet技术,以及SqlServer数据库设计,确保了系统的安全性、性能和用户体验。系统还包含单词学习、测试和数据分析等功能,旨在为用户...

车英赫

jsp英语学习实践系统

jsp语言开发的英语学习实践系统,毕业设计代码

ww860922

(源码)基于Spring和JSP的在线英语学习平台.zip

# 基于Spring和JSP的在线英语学习平台 ## 项目简介 本项目是一个在线英语学习平台,旨在为学生、教师和管理员提供一个集成的学习环境。平台支持多种学习资源的管理和访问,包括英语学习资料、视频、听力材料和试题。用户可以根据自己的角色(学生、教师或管理员)进行登录,并使用相应的功能。 ## 项目的主要特性和功能 1. 用户系统 管理员、教师和学生分别拥有不同的权限和功能。 用户可以登录、编辑个人信息、查看用户列表和进行用户管理。 2. 学习资源管理 管理员和教师可以上传、下载、删除和播放音频、视频和数据文件。 学生可以访问和下载这些资源。 3. 论坛功能 用户可以在论坛中发帖、回帖、编辑和删除帖子。 管理员可以管理论坛内容。 4. 测试和验证 用户可以进行英语学习测试。 系统提供验证码功能,确保用户操作的安全性。 ## 安装使用步骤 1. 环境准备

静默小音箱

基于jsp的英语演讲竞赛现场管理系统

基于jsp的英语演讲竞赛现场管理系统 含演讲计时,评委打分,选手即时排名等,是较好的jsp案例。

chfppp
评论 7
收藏 已收藏
分享
返回顶部
aiweier1986
Web 开发 81,108 成员 341,721 内容