3
Copyright 2002,2004 The Apache Software Foundation.
5
Licensed under the Apache License, Version 2.0 (the "License");
6
you may not use this file except in compliance with the License.
7
You may obtain a copy of the License at
9
http://www.apache.org/licenses/LICENSE-2.0
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
17
$Id: context.jsp 54202 2004-10-10 02:30:58Z craigmcc $
21
<%@ page contentType="text/html;charset=UTF-8" %>
22
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
23
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
24
<%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
27
<s:html locale="true" xhtml="true">
29
<title>context</title>
36
<h:panelGrid columns="2">
38
<%-- ViewRoot Values --%>
40
<h:outputText value="FacesContext.getViewRoot()"/>
41
<h:outputText value="==============================================="/>
43
<h:outputText value="renderKitId"/>
44
<h:outputText id="renderKitIdFC"
45
value="#{facesContext.viewRoot.renderKitId}"/>
47
<h:outputText value="viewId"/>
48
<h:outputText id="viewIdFC"
49
value="#{facesContext.viewRoot.viewId}"/>
51
<%-- ExternalContext Values --%>
53
<h:outputText value="ExternalContext"/>
54
<h:outputText value="==============================================="/>
56
<h:outputText value="authType"/>
57
<h:outputText id="authTypeEC"
58
value="#{facesContext.externalContext.authType}"/>
60
<h:outputText value="remoteUser"/>
61
<h:outputText id="remoteUserEC"
62
value="#{facesContext.externalContext.remoteUser}"/>
64
<h:outputText value="requestContextPath"/>
65
<h:outputText id="requestContextPathEC"
66
value="#{facesContext.externalContext.requestContextPath}"/>
68
<h:outputText value="requestLocale"/>
69
<h:outputText id="requestLocaleEC"
70
value="#{facesContext.externalContext.requestLocale}"/>
72
<h:outputText value="requestPathInfo"/>
73
<h:outputText id="requestPathInfoEC"
74
value="#{facesContext.externalContext.requestPathInfo}"/>
76
<h:outputText value="requestServletPath"/>
77
<h:outputText id="requestServletPathEC"
78
value="#{facesContext.externalContext.requestServletPath}"/>
80
<%-- Request Values --%>
82
<h:outputText value="HttpServletRequest"/>
83
<h:outputText value="==============================================="/>
85
<h:outputText value="authType"/>
86
<h:outputText id="authTypeRQ"
87
value="#{facesContext.externalContext.request.authType}"/>
89
<h:outputText value="contextPath"/>
90
<h:outputText id="contextPathRQ"
91
value="#{facesContext.externalContext.request.contextPath}"/>
93
<h:outputText value="locale"/>
94
<h:outputText id="localeRQ"
95
value="#{facesContext.externalContext.request.locale}"/>
97
<h:outputText value="pathInfo"/>
98
<h:outputText id="pathInfoRQ"
99
value="#{facesContext.externalContext.request.pathInfo}"/>
101
<h:outputText value="remoteUser"/>
102
<h:outputText id="remoteUserRQ"
103
value="#{facesContext.externalContext.request.remoteUser}"/>
105
<h:outputText value="servletPath"/>
106
<h:outputText id="servletPathRQ"
107
value="#{facesContext.externalContext.request.servletPath}"/>
109
<%-- ServletContext Values --%>
111
<h:outputText value="ServletContext"/>
112
<h:outputText value="==============================================="/>
114
<h:outputText value="majorVersion"/>
115
<h:outputText id="majorVersionSC"
116
value="#{facesContext.externalContext.context.majorVersion}"/>
118
<h:outputText value="minorVersion"/>
119
<h:outputText id="minorVersionSC"
120
value="#{facesContext.externalContext.context.minorVersion}"/>
122
<h:outputText value="serverInfo"/>
123
<h:outputText id="serverInfoSC"
124
value="#{facesContext.externalContext.context.serverInfo}"/>
126
<h:outputText value="servletContextName"/>
127
<h:outputText id="servletContextNameSC"
128
value="#{facesContext.externalContext.context.servletContextName}"/>
130
<%-- Submit Buttons --%>
132
<h:commandButton id="submit"
135
<h:commandButton id="reset"