javaserver pages 碎片(1)
来源:互联网 发布:网络贷款管理办法 编辑:程序博客网 时间:2024/04/29 13:08
1.
2.
<fmt:setBundle/>设置全局资源绑定
<fmt:Bundle>
<fmt:message key=""/>
</fmt:Bundle>
3.
The JSP expression language defines a set of implicit objects:
* pageContext: The context for the JSP page. Provides access to various objects including:
o servletContext: The context for the JSP page's servlet and any web components contained in the same application. See Accessing the Web Context.
o session: The session object for the client. See Maintaining Client State.
o request: The request triggering the execution of the JSP page. See Getting Information from Requests.
o response: The response returned by the JSP page. See Constructing Responses.
In addition, several implicit objects are available that allow easy access to the following objects:
* param: Maps a request parameter name to a single value
* paramValues: Maps a request parameter name to an array of values
* header: Maps a request header name to a single value
* headerValues: Maps a request header name to an array of values
* cookie: Maps a cookie name to a single cookie
* initParam: Maps a context initialization parameter name to a single value
Finally, there are objects that allow access to the various scoped variables described in Using Scope Objects.
* pageScope: Maps page-scoped variable names to their values
* requestScope: Maps request-scoped variable names to their values
* sessionScope: Maps session-scoped variable names to their values
* applicationScope: Maps application-scoped variable names to their values
4.
# Core: http://java.sun.com/jsp/jstl/core
# XML: http://java.sun.com/jsp/jstl/xml
# Internationalization: http://java.sun.com/jsp/jstl/fmt
# SQL: http://java.sun.com/jsp/jstl/sql
# Functions: http://java.sun.com/jsp/jstl/functions
<c:if test="${param['locale'] != null}">
<fmt:setLocale value="${param['locale']}" scope="session" />
</c:if>
<fmt:setLocale value="${param['locale']}" scope="session" />
</c:if>
2.
<fmt:setBundle/>设置全局资源绑定
<fmt:Bundle>
<fmt:message key=""/>
</fmt:Bundle>
3.
The JSP expression language defines a set of implicit objects:
* pageContext: The context for the JSP page. Provides access to various objects including:
o servletContext: The context for the JSP page's servlet and any web components contained in the same application. See Accessing the Web Context.
o session: The session object for the client. See Maintaining Client State.
o request: The request triggering the execution of the JSP page. See Getting Information from Requests.
o response: The response returned by the JSP page. See Constructing Responses.
In addition, several implicit objects are available that allow easy access to the following objects:
* param: Maps a request parameter name to a single value
* paramValues: Maps a request parameter name to an array of values
* header: Maps a request header name to a single value
* headerValues: Maps a request header name to an array of values
* cookie: Maps a cookie name to a single cookie
* initParam: Maps a context initialization parameter name to a single value
Finally, there are objects that allow access to the various scoped variables described in Using Scope Objects.
* pageScope: Maps page-scoped variable names to their values
* requestScope: Maps request-scoped variable names to their values
* sessionScope: Maps session-scoped variable names to their values
* applicationScope: Maps application-scoped variable names to their values
4.
# Core: http://java.sun.com/jsp/jstl/core
# XML: http://java.sun.com/jsp/jstl/xml
# Internationalization: http://java.sun.com/jsp/jstl/fmt
# SQL: http://java.sun.com/jsp/jstl/sql
# Functions: http://java.sun.com/jsp/jstl/functions
- javaserver pages 碎片(1)
- JavaServer pages
- JavaServer Pages 新手入门
- javaServer pages for beginners
- JavaServer Pages Overview
- Beginning JavaServer Pages
- JavaServer Pages, Second Edition
- JavaServer Pages Technology
- JavaServer Pages Application Architecture
- What is JavaServer Pages?
- JSP(JavaServer Pages)
- JavaServer Pages标准标签库
- Scott Johnson:JavaServer Pages 新手入门
- Scott Johnson:JavaServer Pages 新手入门
- 什么是JSP(JavaServer Pages)技术?
- 什么是JSP(JavaServer Pages)技术?
- Core Servlets and JavaServer Pages
- Core Servlets and JavaServer Pages
- 产品经理的第一堂课(十一):商业价值、市场规模、品牌、圈子
- Think in java读书笔记
- 《在小吃店遇见凯恩斯》读书心得小记 - Part 1
- 也看Ruby on Rails
- 防止项目延迟的18条规则
- javaserver pages 碎片(1)
- 一个词法分析程序
- WML语法
- Hibernate实现分页查询的原理分析
- 《Web全面性能测试实战》第2章Web全面性能测试模型
- 双绞线网线线序解析
- 网络中双绞线接线的方法和策略
- 编写安全的代码的一些技巧 C++
- 引用类型的使用注意