~ubuntu-branches/ubuntu/lucid/libstruts1.2-java/lucid

« back to all changes in this revision

Viewing changes to contrib/struts-faces/systest1-webapp/src/web/context.jsp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-04-24 12:14:23 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060424121423-naev53qigqgks0sa
Tags: 1.2.9-1
New upstream  release Fixes  three security  problems: CVE-2006-1546,
CVE-2006-1547,  CVE-2006-1548  (closes:  #360551),  thanks  to  Moritz
Muehlenhoff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
 
 
3
 Copyright 2002,2004 The Apache Software Foundation.
 
4
 
 
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
 
8
 
 
9
      http://www.apache.org/licenses/LICENSE-2.0
 
10
 
 
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.
 
16
 
 
17
 $Id: context.jsp 54202 2004-10-10 02:30:58Z craigmcc $
 
18
 
 
19
-->
 
20
 
 
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" %>
 
25
 
 
26
<f:view>
 
27
  <s:html locale="true" xhtml="true">
 
28
    <head>
 
29
      <title>context</title>
 
30
    </head>
 
31
    <body>
 
32
 
 
33
      <s:form             id="form"
 
34
                      action="/context">
 
35
 
 
36
      <h:panelGrid   columns="2">
 
37
 
 
38
        <%-- ViewRoot Values --%>
 
39
 
 
40
        <h:outputText  value="FacesContext.getViewRoot()"/>
 
41
        <h:outputText  value="==============================================="/>
 
42
 
 
43
        <h:outputText  value="renderKitId"/>
 
44
        <h:outputText     id="renderKitIdFC"
 
45
                       value="#{facesContext.viewRoot.renderKitId}"/>
 
46
 
 
47
        <h:outputText  value="viewId"/>
 
48
        <h:outputText     id="viewIdFC"
 
49
                       value="#{facesContext.viewRoot.viewId}"/>
 
50
 
 
51
        <%-- ExternalContext Values --%>
 
52
 
 
53
        <h:outputText  value="ExternalContext"/>
 
54
        <h:outputText  value="==============================================="/>
 
55
 
 
56
        <h:outputText  value="authType"/>
 
57
        <h:outputText     id="authTypeEC"
 
58
                       value="#{facesContext.externalContext.authType}"/>
 
59
 
 
60
        <h:outputText  value="remoteUser"/>
 
61
        <h:outputText     id="remoteUserEC"
 
62
                       value="#{facesContext.externalContext.remoteUser}"/>
 
63
 
 
64
        <h:outputText  value="requestContextPath"/>
 
65
        <h:outputText     id="requestContextPathEC"
 
66
                       value="#{facesContext.externalContext.requestContextPath}"/>
 
67
 
 
68
        <h:outputText  value="requestLocale"/>
 
69
        <h:outputText     id="requestLocaleEC"
 
70
                       value="#{facesContext.externalContext.requestLocale}"/>
 
71
 
 
72
        <h:outputText  value="requestPathInfo"/>
 
73
        <h:outputText     id="requestPathInfoEC"
 
74
                       value="#{facesContext.externalContext.requestPathInfo}"/>
 
75
 
 
76
        <h:outputText  value="requestServletPath"/>
 
77
        <h:outputText     id="requestServletPathEC"
 
78
                       value="#{facesContext.externalContext.requestServletPath}"/>
 
79
 
 
80
        <%-- Request Values --%>
 
81
 
 
82
        <h:outputText  value="HttpServletRequest"/>
 
83
        <h:outputText  value="==============================================="/>
 
84
 
 
85
        <h:outputText  value="authType"/>
 
86
        <h:outputText     id="authTypeRQ"
 
87
                       value="#{facesContext.externalContext.request.authType}"/>
 
88
 
 
89
        <h:outputText  value="contextPath"/>
 
90
        <h:outputText     id="contextPathRQ"
 
91
                       value="#{facesContext.externalContext.request.contextPath}"/>
 
92
 
 
93
        <h:outputText  value="locale"/>
 
94
        <h:outputText     id="localeRQ"
 
95
                       value="#{facesContext.externalContext.request.locale}"/>
 
96
 
 
97
        <h:outputText  value="pathInfo"/>
 
98
        <h:outputText     id="pathInfoRQ"
 
99
                       value="#{facesContext.externalContext.request.pathInfo}"/>
 
100
 
 
101
        <h:outputText  value="remoteUser"/>
 
102
        <h:outputText     id="remoteUserRQ"
 
103
                       value="#{facesContext.externalContext.request.remoteUser}"/>
 
104
 
 
105
        <h:outputText  value="servletPath"/>
 
106
        <h:outputText     id="servletPathRQ"
 
107
                       value="#{facesContext.externalContext.request.servletPath}"/>
 
108
 
 
109
        <%-- ServletContext Values --%>
 
110
 
 
111
        <h:outputText  value="ServletContext"/>
 
112
        <h:outputText  value="==============================================="/>
 
113
 
 
114
        <h:outputText  value="majorVersion"/>
 
115
        <h:outputText     id="majorVersionSC"
 
116
                       value="#{facesContext.externalContext.context.majorVersion}"/>
 
117
 
 
118
        <h:outputText  value="minorVersion"/>
 
119
        <h:outputText     id="minorVersionSC"
 
120
                       value="#{facesContext.externalContext.context.minorVersion}"/>
 
121
 
 
122
        <h:outputText  value="serverInfo"/>
 
123
        <h:outputText     id="serverInfoSC"
 
124
                       value="#{facesContext.externalContext.context.serverInfo}"/>
 
125
 
 
126
        <h:outputText  value="servletContextName"/>
 
127
        <h:outputText     id="servletContextNameSC"
 
128
                       value="#{facesContext.externalContext.context.servletContextName}"/>
 
129
 
 
130
        <%-- Submit Buttons --%>
 
131
 
 
132
        <h:commandButton  id="submit"
 
133
                        type="SUBMIT"
 
134
                       value="Submit"/>
 
135
        <h:commandButton  id="reset"
 
136
                        type="RESET"
 
137
                       value="Reset"/>
 
138
 
 
139
      </h:panelGrid>
 
140
 
 
141
      </s:form>
 
142
 
 
143
    </body>
 
144
  </s:html>
 
145
</f:view>