Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
e4792aaf
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e4792aaf
编写于
8月 16, 2010
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polishing
上级
b58e19b0
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
4 addition
and
13 deletion
+4
-13
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support/RequestContext.java
...g/springframework/web/servlet/support/RequestContext.java
+1
-7
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/HtmlEscapingAwareTag.java
...pringframework/web/servlet/tags/HtmlEscapingAwareTag.java
+3
-4
org.springframework.web/src/main/java/org/springframework/web/util/UrlPathHelper.java
...main/java/org/springframework/web/util/UrlPathHelper.java
+0
-2
未找到文件。
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support/RequestContext.java
浏览文件 @
e4792aaf
/*
/*
* Copyright 2002-20
09
the original author or authors.
* Copyright 2002-20
10
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -415,9 +415,6 @@ public class RequestContext {
...
@@ -415,9 +415,6 @@ public class RequestContext {
* <p><b>Note this implementation will correctly resolve to the URI of any
* <p><b>Note this implementation will correctly resolve to the URI of any
* originating root request in the presence of a forwarded request. However, this
* originating root request in the presence of a forwarded request. However, this
* can only work when the Servlet 2.4 'forward' request attributes are present.
* can only work when the Servlet 2.4 'forward' request attributes are present.
* For use in a Servlet 2.3 environment, you can rely on
* {@link org.springframework.web.servlet.view.InternalResourceView}
* to add these prior to dispatching the request.</b>
* <p>Delegates to the UrlPathHelper for decoding.
* <p>Delegates to the UrlPathHelper for decoding.
* @see #getQueryString
* @see #getQueryString
* @see org.springframework.web.util.UrlPathHelper#getOriginatingRequestUri
* @see org.springframework.web.util.UrlPathHelper#getOriginatingRequestUri
...
@@ -434,9 +431,6 @@ public class RequestContext {
...
@@ -434,9 +431,6 @@ public class RequestContext {
* <p><b>Note this implementation will correctly resolve to the query string of any
* <p><b>Note this implementation will correctly resolve to the query string of any
* originating root request in the presence of a forwarded request. However, this
* originating root request in the presence of a forwarded request. However, this
* can only work when the Servlet 2.4 'forward' request attributes are present.
* can only work when the Servlet 2.4 'forward' request attributes are present.
* For use in a Servlet 2.3 environment, you can rely on
* {@link org.springframework.web.servlet.view.InternalResourceView}
* to add these prior to dispatching the request.</b>
* <p>Delegates to the UrlPathHelper for decoding.
* <p>Delegates to the UrlPathHelper for decoding.
* @see #getRequestUri
* @see #getRequestUri
* @see org.springframework.web.util.UrlPathHelper#getOriginatingQueryString
* @see org.springframework.web.util.UrlPathHelper#getOriginatingQueryString
...
...
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/HtmlEscapingAwareTag.java
浏览文件 @
e4792aaf
/*
/*
* Copyright 2002-20
07
the original author or authors.
* Copyright 2002-20
10
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -26,7 +26,7 @@ import org.springframework.web.util.ExpressionEvaluationUtils;
...
@@ -26,7 +26,7 @@ import org.springframework.web.util.ExpressionEvaluationUtils;
* <p>Provides a "htmlEscape" property for explicitly specifying whether to
* <p>Provides a "htmlEscape" property for explicitly specifying whether to
* apply HTML escaping. If not set, a page-level default (e.g. from the
* apply HTML escaping. If not set, a page-level default (e.g. from the
* HtmlEscapeTag) or an application-wide default (the "defaultHtmlEscape"
* HtmlEscapeTag) or an application-wide default (the "defaultHtmlEscape"
* context-param in
web.xml
) is used.
* context-param in
<code>web.xml</code>
) is used.
*
*
* @author Juergen Hoeller
* @author Juergen Hoeller
* @since 1.1
* @since 1.1
...
@@ -46,8 +46,7 @@ public abstract class HtmlEscapingAwareTag extends RequestContextAwareTag {
...
@@ -46,8 +46,7 @@ public abstract class HtmlEscapingAwareTag extends RequestContextAwareTag {
* @see HtmlEscapeTag#setDefaultHtmlEscape
* @see HtmlEscapeTag#setDefaultHtmlEscape
*/
*/
public
void
setHtmlEscape
(
String
htmlEscape
)
throws
JspException
{
public
void
setHtmlEscape
(
String
htmlEscape
)
throws
JspException
{
this
.
htmlEscape
=
this
.
htmlEscape
=
ExpressionEvaluationUtils
.
evaluateBoolean
(
"htmlEscape"
,
htmlEscape
,
pageContext
);
new
Boolean
(
ExpressionEvaluationUtils
.
evaluateBoolean
(
"htmlEscape"
,
htmlEscape
,
pageContext
));
}
}
/**
/**
...
...
org.springframework.web/src/main/java/org/springframework/web/util/UrlPathHelper.java
浏览文件 @
e4792aaf
...
@@ -283,8 +283,6 @@ public class UrlPathHelper {
...
@@ -283,8 +283,6 @@ public class UrlPathHelper {
/**
/**
* Return the query string part of the given request's URL. If this is a forwarded request,
* Return the query string part of the given request's URL. If this is a forwarded request,
* correctly resolves to the query string of the original request.
* correctly resolves to the query string of the original request.
* <p>Relies on the Servlet 2.4 'forward' attributes. These attributes may be set by
* other components when running in a Servlet 2.3 environment.
* @param request current HTTP request
* @param request current HTTP request
* @return the query string
* @return the query string
*/
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录