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

« back to all changes in this revision

Viewing changes to web/test/test/org/apache/struts/taglib/html/TestCancelTag1.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:
27
27
                <html:cancel alt="Testing alt attribute"/>
28
28
        </bean:define>
29
29
        <bean:define id="EXPECTED_RESULTS" toScope="page">
30
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" alt="Testing alt attribute" onclick="bCancel=true;">
 
30
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" alt="Testing alt attribute">
31
31
        </bean:define>
32
32
</logic:equal>
33
33
 
36
36
                <html:cancel altKey="default.bundle.message"/>
37
37
        </bean:define>
38
38
        <bean:define id="EXPECTED_RESULTS" toScope="page">
39
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" alt="Testing Message" onclick="bCancel=true;">
 
39
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" alt="Testing Message">
40
40
        </bean:define>
41
41
</logic:equal>
42
42
 
49
49
        </bean:define>
50
50
</logic:equal>
51
51
 
 
52
<logic:equal name="runTest" value="testCancelAltKey3">
 
53
        <bean:define id="TEST_RESULTS" toScope="page">
 
54
                <html:cancel altKey="alternate.bundle.message" bundle="alternate"/>
 
55
        </bean:define>
 
56
        <bean:define id="EXPECTED_RESULTS" toScope="page">
 
57
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" alt="Testing Message">
 
58
        </bean:define>
 
59
</logic:equal>
 
60
 
52
61
<logic:equal name="runTest" value="testCancelAltKey1_fr">
53
62
        <bean:define id="TEST_RESULTS" toScope="page">
54
63
                <html:cancel altKey="default.bundle.message"/>
55
64
        </bean:define>
56
65
        <bean:define id="EXPECTED_RESULTS" toScope="page">
57
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" alt="Message D'Essai" onclick="bCancel=true;">
 
66
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" alt="Message D'Essai">
58
67
        </bean:define>
59
68
</logic:equal>
60
69
 
72
81
                <html:cancel disabled="true"/>
73
82
        </bean:define>
74
83
        <bean:define id="EXPECTED_RESULTS" toScope="page">
75
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" disabled="disabled" onclick="bCancel=true;">
 
84
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" disabled="disabled">
76
85
        </bean:define>
77
86
</logic:equal>
78
87
 
104
113
                <html:cancel onblur="Put script here"/>
105
114
        </bean:define>
106
115
        <bean:define id="EXPECTED_RESULTS" toScope="page">
107
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onblur="Put script here" onclick="bCancel=true;">
 
116
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onblur="Put script here">
108
117
        </bean:define>
109
118
</logic:equal>
110
119
 
115
124
                <html:cancel onchange="Put script here"/>
116
125
        </bean:define>
117
126
        <bean:define id="EXPECTED_RESULTS" toScope="page">
118
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onchange="Put script here" onclick="bCancel=true;">
 
127
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onchange="Put script here">
119
128
        </bean:define>
120
129
</logic:equal>
121
130
 
135
144
                <html:cancel ondblclick="Put script here"/>
136
145
        </bean:define>
137
146
        <bean:define id="EXPECTED_RESULTS" toScope="page">
138
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" ondblclick="Put script here" onclick="bCancel=true;">
 
147
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" ondblclick="Put script here">
139
148
        </bean:define>
140
149
</logic:equal>
141
150
 
145
154
                <html:cancel onfocus="Put script here"/>
146
155
        </bean:define>
147
156
        <bean:define id="EXPECTED_RESULTS" toScope="page">
148
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onfocus="Put script here" onclick="bCancel=true;">
 
157
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onfocus="Put script here">
149
158
        </bean:define>
150
159
</logic:equal>
151
160
 
155
164
                <html:cancel onkeydown="Put script here"/>
156
165
        </bean:define>
157
166
        <bean:define id="EXPECTED_RESULTS" toScope="page">
158
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onkeydown="Put script here" onclick="bCancel=true;">
 
167
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onkeydown="Put script here">
159
168
        </bean:define>
160
169
</logic:equal>
161
170
 
165
174
                <html:cancel onkeypress="Put script here"/>
166
175
        </bean:define>
167
176
        <bean:define id="EXPECTED_RESULTS" toScope="page">
168
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onkeypress="Put script here" onclick="bCancel=true;">
 
177
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onkeypress="Put script here">
169
178
        </bean:define>
170
179
</logic:equal>
171
180
 
175
184
                <html:cancel onkeyup="Put script here"/>
176
185
        </bean:define>
177
186
        <bean:define id="EXPECTED_RESULTS" toScope="page">
178
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onkeyup="Put script here" onclick="bCancel=true;">
 
187
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onkeyup="Put script here">
179
188
        </bean:define>
180
189
</logic:equal>
181
190
 
185
194
                <html:cancel onmousedown="Put script here"/>
186
195
        </bean:define>
187
196
        <bean:define id="EXPECTED_RESULTS" toScope="page">
188
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onmousedown="Put script here" onclick="bCancel=true;">
 
197
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onmousedown="Put script here">
189
198
        </bean:define>
190
199
</logic:equal>
191
200
 
195
204
                <html:cancel onmousemove="Put script here"/>
196
205
        </bean:define>
197
206
        <bean:define id="EXPECTED_RESULTS" toScope="page">
198
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onmousemove="Put script here" onclick="bCancel=true;">
 
207
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onmousemove="Put script here">
199
208
        </bean:define>
200
209
</logic:equal>
201
210
 
205
214
                <html:cancel onmouseout="Put script here"/>
206
215
        </bean:define>
207
216
        <bean:define id="EXPECTED_RESULTS" toScope="page">
208
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onmouseout="Put script here" onclick="bCancel=true;">
 
217
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onmouseout="Put script here">
209
218
        </bean:define>
210
219
</logic:equal>
211
220
 
215
224
                <html:cancel onmouseover="Put script here"/>
216
225
        </bean:define>
217
226
        <bean:define id="EXPECTED_RESULTS" toScope="page">
218
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onmouseover="Put script here" onclick="bCancel=true;">
 
227
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onmouseover="Put script here">
219
228
        </bean:define>
220
229
</logic:equal>
221
230
 
225
234
                <html:cancel onmouseup="Put script here"/>
226
235
        </bean:define>
227
236
        <bean:define id="EXPECTED_RESULTS" toScope="page">
228
 
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onmouseup="Put script here" onclick="bCancel=true;">
 
237
                <input type="submit" name="org.apache.struts.taglib.html.CANCEL" value="Cancel" onclick="bCancel=true;" onmouseup="Put script here">
229
238
        </bean:define>
230
239
</logic:equal>
231
240