Java 应用与开发 - JSP (Java Server Page)
大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP 内置对象 本节习题 Java 应用与开发 JSP (Java Server Page) 王晓东 wangxiaodong@ouc.edu.cn 中国海洋大学 December 3, 2018 大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP 内置对象 本节习题 学习目标 1. 理解 JSP 和 Servlet 掌握 JSP 提供的各类编程元素的使用方式,包括 JSP 指令、 JSP 动作、JSP 脚本。 3. 掌握 JSP 提供的内置对象与 Servlet 相关对象的对应,学会 各类对象的使用方法。 4. 能够使用 JSP 完成简单的 Java Web 编程。 5. 对 JSP 作为 MVC 设计模式中的视图构建方式有初步的 了解。 大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP JSP 内置对象 本节习题 大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP 内置对象 本节习题 大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP 内置对象 本节习题 接下来⋯ JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP 内置对象 本节习题 大纲 JSP 概述 JSP 指令 JSP 动作 JSP 脚本 JSP0 码力 | 47 页 | 740.36 KB | 1 年前3《Java 应用与开发》课程讲义 - 王晓东
. . . . . . . . . . . . . . 276 23 JSP(Java Server Page) 277 23.1 JSP 概述 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 23.1.1 JSP 基本概念 . . . . . . . . . . . . . . . . . . 278 23.1.2 JSP 的优点和缺点 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 23.1.3 JSP 的执行过程 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 23.1.4 JSP 执行过程描述 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 23.1.5 JSP 页面的组成 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 23.2 JSP 指令 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 330 页 | 6.54 MB | 1 年前3Java 应用与开发 - MVC 和框架初步
在 Eclipse 中使用 Struts 2 Struts 2 的开发步骤小结 本节习题 大纲 Java Web 应用的开发演化 经典 MVC 框架 - Struts 2 本节习题 JSP 方式 JSP 在 HTML 代码里写 Java 代码完成业务逻辑。 1 <% 2 String name = request.getParameter("name"); 3 String password Java Web 应用的开发演化 经典 MVC 框架 - Struts 2 本节习题 JSP 方式 O 仅有的一点优势 1. 无需额外的配置文件,无需框架的帮助,即可完成逻辑。 2. 简单易上手。 O 劣势 1. Java 代码由于混杂在一个 HTML 环境中而显得混乱不堪, 可读性非常差。一个 JSP 文件有时候会变成几十 K,甚至 上百 K,经常难以定位逻辑代码的所在。 2. 编写 Java Web 应用的开发演化 经典 MVC 框架 - Struts 2 本节习题 JSP 方式 O 仅有的一点优势 1. 无需额外的配置文件,无需框架的帮助,即可完成逻辑。 2. 简单易上手。 O 劣势 1. Java 代码由于混杂在一个 HTML 环境中而显得混乱不堪, 可读性非常差。一个 JSP 文件有时候会变成几十 K,甚至 上百 K,经常难以定位逻辑代码的所在。 2. 编写0 码力 | 51 页 | 837.26 KB | 1 年前3Spring Framework 2.5.5 Changelog
request completion * DispatcherServlet exposes the Servlet spec's error attributes to error views (for JSP error page compatibility) * HandlerMethodInvoker does not eagerly copy entire model Map in order to report data value in case of multiple collections or object arrays * added "autocomplete" attribute to JSP FormTag (for a form-wide setting, as alternative to InputTag's "autocomplete") * JSF DelegatingVariableResolver not copy whole model Set for session attribute exposure anymore (avoiding lazy value init) * fixed JSP form tags to properly return SKIP_BODY instead of the non-defined EVAL_PAGE (for WebLogic compatibility)0 码力 | 101 页 | 291.00 KB | 1 年前3Spring Framework 2.5.6 Changelog
request completion * DispatcherServlet exposes the Servlet spec's error attributes to error views (for JSP error page compatibility) * HandlerMethodInvoker does not eagerly copy entire model Map in order to report data value in case of multiple collections or object arrays * added "autocomplete" attribute to JSP FormTag (for a form-wide setting, as alternative to InputTag's "autocomplete") * JSF DelegatingVariableResolver not copy whole model Set for session attribute exposure anymore (avoiding lazy value init) * fixed JSP form tags to properly return SKIP_BODY instead of the non-defined EVAL_PAGE (for WebLogic compatibility)0 码力 | 106 页 | 302.13 KB | 1 年前3Spring Framework 2.5.6 Changelog
request completion * DispatcherServlet exposes the Servlet spec's error attributes to error views (for JSP error page compatibility) * HandlerMethodInvoker does not eagerly copy entire model Map in order to report data value in case of multiple collections or object arrays * added "autocomplete" attribute to JSP FormTag (for a form-wide setting, as alternative to InputTag's "autocomplete") * JSF DelegatingVariableResolver not copy whole model Set for session attribute exposure anymore (avoiding lazy value init) * fixed JSP form tags to properly return SKIP_BODY instead of the non-defined EVAL_PAGE (for WebLogic compatibility)0 码力 | 106 页 | 305.07 KB | 1 年前3Spring Framework 2.5.4 Changelog
when WebApplicationContext's ServletContext is null (like in a plain Portlet environment) * fixed JSP form tags to properly return SKIP_BODY instead of the non-defined EVAL_PAGE (for WebLogic compatibility) RequestContext's MessageSource for localization * JSP form tags do not autogenerate id in case of empty id specified (empty id signals no id to be rendered) * JSP OptionTag and OptionsTag support "id" attribute RadioButton(s)Tag and Checkbox(es)Tag * added standard HTML "target" attribute to JSP FormTag, for submitting to another window/frame * fixed JSP LabelTag to render valid default "for" attribute for collection/map0 码力 | 97 页 | 278.81 KB | 1 年前3基于 Java EE 的企业应用系统设计 - Spring MVC 01
应用的开发演化 MVC 模式示例 Spring MVC 数据绑定和表单标签库 大纲 Java Web 应用的开发演化 MVC 模式示例 Spring MVC 数据绑定和表单标签库 JSP 方式 JSP 在 HTML 代码里写 Java 代码完成业务逻辑。 <% String name = request.getParameter("name"); String password = request Web 应用的开发演化 MVC 模式示例 Spring MVC 数据绑定和表单标签库 JSP 方式 O 仅有的一点优势 1. 无需额外的配置文件,无需框架的帮助,即可完成逻辑。 2. 简单易上手。 O 劣势 1. Java 代码由于混杂在一个 HTML 环境中而显得混乱不堪,可 读性非常差。一个 JSP 文件有时候会变成几十 K,甚至上百 K,经常难以定位逻辑代码的所在。 2. 编写代码 Web 应用的开发演化 MVC 模式示例 Spring MVC 数据绑定和表单标签库 JSP 方式 O 仅有的一点优势 1. 无需额外的配置文件,无需框架的帮助,即可完成逻辑。 2. 简单易上手。 O 劣势 1. Java 代码由于混杂在一个 HTML 环境中而显得混乱不堪,可 读性非常差。一个 JSP 文件有时候会变成几十 K,甚至上百 K,经常难以定位逻辑代码的所在。 2. 编写代码0 码力 | 67 页 | 792.43 KB | 1 年前3Spring Framework 2.5.3 Changelog
RequestContext's MessageSource for localization * JSP form tags do not autogenerate id in case of empty id specified (empty id signals no id to be rendered) * JSP OptionTag and OptionsTag support "id" attribute RadioButton(s)Tag and Checkbox(es)Tag * added standard HTML "target" attribute to JSP FormTag, for submitting to another window/frame * fixed JSP LabelTag to render valid default "for" attribute for collection/map replacement of COMMAND_NAME_VARIABLE_NAME) * JSP Checkbox(es)Tag and RadioButton(s)Tag render label as HTML label element after input element (for HTML compliance) * JSP CheckboxesTag and RadioButtonsTag compare0 码力 | 95 页 | 274.89 KB | 1 年前3Apache Shiro 1.2.x Reference Manual 中文翻译
Configuration 配置 10.2. 基于路径的 url 安全 10.3. Default Filters 默认过滤器 10.4. Session Management 10.5. JSP Tag Library IV. Auxiliary Support 辅助支持 11. Caching 缓存 12. Concurrency & Multithreading 并发与多线程 13 中执行授权可以有三种途径: 程序代码--你可以在你的 JAVA 代码中执行用类似于 if 和 else 的结构来执行权限检查。 JDK 注解--你可以在你的 JAVA 方法上附加权限注解 JSP/GSP 标签--你可以基于角色和权限控制 JSP 或 GSP 页面输出内容。 Programmatic Authorization 程序中检查授权 Apache Shiro 1.2.x Reference Manual AuthorizationException(...); } //Subject 确保是一个已知的身份 ... } JSP TagLib Authorization 标签库授权 Shiro 提供了一个标签库来控制 JSP/GSP 页面输出,这将在 Web 文档中的 JSP/GSP 标签库 中讨论 Authorization Sequence 授权序列 现在我们已经看到如何对当前 Subject0 码力 | 196 页 | 2.34 MB | 1 年前3
共 455 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46