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

« back to all changes in this revision

Viewing changes to contrib/struts-faces/web/example2/logon.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
 
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
 
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
3
 
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
4
 
<%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
5
 
 
6
 
 
7
 
<!--
8
 
 
9
 
 Copyright 2002,2004 The Apache Software Foundation.
10
 
 
11
 
 Licensed under the Apache License, Version 2.0 (the "License");
12
 
 you may not use this file except in compliance with the License.
13
 
 You may obtain a copy of the License at
14
 
 
15
 
      http://www.apache.org/licenses/LICENSE-2.0
16
 
 
17
 
 Unless required by applicable law or agreed to in writing, software
18
 
 distributed under the License is distributed on an "AS IS" BASIS,
19
 
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
 
 See the License for the specific language governing permissions and
21
 
 limitations under the License.
22
 
 
23
 
-->
24
 
 
25
 
 
26
 
<s:errors/>
27
 
 
28
 
<s:form            action="/logon"
29
 
                    focus="username"
30
 
                 onsubmit="return validateLogonForm(this);">
31
 
 
32
 
  <h:panelGrid    columns="2"
33
 
               styleClass="form-background"
34
 
              headerClass="form-header"
35
 
            columnClasses="form-prompt,form-field"
36
 
              footerClass="form-footer">
37
 
 
38
 
    <%-- Grid header element --%>
39
 
 
40
 
    <f:facet         name="header">
41
 
      <s:message      key="logon.header"/>
42
 
    </f:facet>
43
 
 
44
 
    <%-- Grid data elements --%>
45
 
 
46
 
    <h:outputLabel    for="username">
47
 
      <s:message      key="prompt.username"/>
48
 
    </h:outputLabel>
49
 
 
50
 
    <h:inputText       id="username"
51
 
                     size="16"
52
 
                    value="#{logonForm.username}"/>
53
 
 
54
 
    <h:outputLabel    for="password">
55
 
      <s:message      key="prompt.password"/>
56
 
    </h:outputLabel>
57
 
 
58
 
    <h:inputSecret     id="password" size="16"
59
 
                    value="#{logonForm.password}"/>
60
 
 
61
 
    <h:commandButton   id="submit"
62
 
                     type="SUBMIT"
63
 
               styleClass="command-single"
64
 
                    value="Log On"/>
65
 
 
66
 
    <h:commandButton   id="reset"
67
 
                     type="RESET"
68
 
               styleClass="command-single"
69
 
                    value="Reset"/>
70
 
 
71
 
    <%-- Grid footer element --%>
72
 
 
73
 
    <f:facet         name="footer">
74
 
      <s:message      key="logon.footer"/>
75
 
    </f:facet>
76
 
 
77
 
  </h:panelGrid>
78
 
 
79
 
  <s:javascript formName="logonForm"
80
 
       dynamicJavascript="true"
81
 
        staticJavascript="false"/>
82
 
  <script language="Javascript1.1" src="staticJavascript.jsp"></script>
83
 
 
84
 
</s:form>
85