-
Notifications
You must be signed in to change notification settings - Fork 102
/
JSPMain.xml
5070 lines (5066 loc) · 332 KB
/
JSPMain.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE spec SYSTEM "https://raw.githubusercontent.com/eclipse-ee4j/jakartaee-tck/master/internal/docs/dtd/spec_assertions.dtd">
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<?xml-stylesheet href = 'file:///files/workspaces/tools/docs/xsl/assertions/spec_assertions_comments.xsl' type = 'text/xsl'?>
<spec>
<!-- $URL$ $LastChangedDate$ -->
<next-available-id>2</next-available-id>
<previous-id>1</previous-id>
<technology>JSP</technology>
<id>3.1</id>
<name>Jakarta Server Pages</name>
<version>Proposed Final Draft</version>
<location-names>
<chapters>
<chapter id = "1" name = "Core Syntax and Semantics">
<sections>
<section id = "1" name = "What is a JSP Page"/>
<section id = "1.1" name = "Web Containers and Web Components"/>
<section id = "1.2" name = "JSP and HTML"/>
<section id = "1.3" name = "JSP and XML"/>
<section id = "1.4" name = "Translation and Execution Phases"/>
<section id = "1.5" name = "Events in JSP Pages"/>
<section id = "1.6" name = "JSP Configuration Information"/>
<section id = "1.7" name = "Naming Conventions for JSP Files"/>
<section id = "1.8" name = "Compiling JSP Pages"/>
<section id = "1.8.1" name = "JSP Page Packaging"/>
<section id = "1.9" name = "Debugging JSP Pages"/>
<section id = "2" name = "Web Applications"/>
<section id = "2.1" name = "Relative URL Specifications"/>
<section id = "3" name = "Syntactic Elements of a JSP Page"/>
<section id = "3.1" name = "Elements and Template Data"/>
<section id = "3.2" name = "Element Syntax"/>
<section id = "3.3" name = "Start and End Tags"/>
<section id = "3.4" name = "Empty Elements"/>
<section id = "3.5" name = "Attribute Values"/>
<section id = "3.6" name = "The jsp:attribute, jsp:body, and jsp:element Elements."/>
<section id = "3.7" name = "Valid Names for Actions and Attributes"/>
<section id = "3.8" name = "White Space"/>
<section id = "3.9" name = "JSP Documents"/>
<section id = "3.10" name = "JSP Syntax Grammar"/>
<section id = "3.10.1" name = "EBNF Grammar for JSP Syntax"/>
<section id = "3.10.2" name = "Validity Constraints"/>
<section id = "3.10.3" name = "Standard Action Attributes"/>
<section id = "4" name = "Error Handling"/>
<section id = "4.1" name = "Translation Time Processing Errors"/>
<section id = "4.2" name = "Request Time Processing Errors"/>
<section id = "4.3" name = "Using JSPs as Error Pages"/>
<section id = "5" name = "Comments"/>
<section id = "5.1" name = "Generating Comments in Output to Client"/>
<section id = "5.2" name = "JSP Comments"/>
<section id = "6" name = "Quoting and Escape Conventions"/>
<section id = "7" name = "Overall Semantics of a JSP Page"/>
<section id = "8" name = "Objects"/>
<section id = "8.1" name = "Objects and Variables"/>
<section id = "8.2" name = "Objects and Scopes"/>
<section id = "8.3" name = "Implicit Objects"/>
<section id = "8.4" name = "the 'pageContext' Object"/>
<section id = "9" name = "Template Text Semantics"/>
<section id = "10" name = "Directives"/>
<section id = "10.1" name = "The 'page' Directive"/>
<section id = "10.2" name = "The 'taglib' directive"/>
<section id = "10.3" name = "The 'include' directive"/>
<section id = "10.4" name = "Implicit Includes"/>
<section id = "10.5" name = "Including Data in JSP Pages"/>
<section id = "10.6" name = "Additional Directives for Tag Files"/>
<section id = "11" name = "EL Elements"/>
<section id = "12" name = "Scripting Elements"/>
<section id = "12.1" name = "Declarations"/>
<section id = "12.2" name = "Scriptlets"/>
<section id = "12.3" name = "Expressions"/>
<section id = "13" name = "Actions"/>
<section id = "14" name = "Tag Attribute Interpretation Semantics"/>
<section id = "14.1" name = "Request Time Attribute Values"/>
<section id = "14.2" name = "Type Conversions"/>
<section id = "14.2.1" name = "Conversions from String values"/>
<section id = "14.2.2" name = "Conversions from request-time expressions"/>
</sections>
</chapter>
<chapter id = "2" name = "Expression Language">
<sections>
<section id = "1" name = "Overview"/>
<section id = "2" name = "The Expression Language in JSP 2.0"/>
<section id = "2.1" name = "Expressions and Attribute Values"/>
<section id = "2.1.1" name = "Examples"/>
<section id = "2.2" name = "Expressions and Template Text"/>
<section id = "2.2.1" name = "Examples"/>
<section id = "2.3" name = "Implicit Objects"/>
<section id = "2.4" name = "Deactivating EL Evaluation"/>
<section id = "2.5" name = "Disabling Scripting Elements"/>
<section id = "3" name = "General Syntax ofthe Expression Language"/>
<section id = "3.1" name = "Overview"/>
<section id = "3.2" name = "Literals"/>
<section id = "3.3" name = "Errors, Warnings, Default Values"/>
<section id = "3.4" name = "Operators '[]' and '.'"/>
<section id = "3.5" name = "Arithmetic Operators"/>
<section id = "3.5.1" name = "Binary Operators - {+, -, *} B"/>
<section id = "3.5.2" name = "Binary Operator - A {/} B"/>
<section id = "3.5.3" name = "Binary Operator - A {%} B"/>
<section id = "3.5.4" name = "Unary minus operator - -A"/>
<section id = "3.5.5" name = "Relational Operators"/>
<section id = "3.5.6" name = "A { <, >, <=, >=, lt, gt, le, ge} B"/>
<section id = "3.5.7" name = "A {==, !=, eq, ne} B"/>
<section id = "3.6" name = "Logical Operators"/>
<section id = "3.6.1" name = "Binary Operator - A { &&, ||, and, or} B"/>
<section id = "3.6.2" name = "Unary not operator - { !, not } A"/>
<section id = "3.7" name = "Empty Operator - empty A"/>
<section id = "3.8" name = "Parentheses"/>
<section id = "3.9" name = "Operator Precendence"/>
<section id = "4" name = "Reserved Words"/>
<section id = "5" name = "Named Variables"/>
<section id = "6" name = "Functions"/>
<section id = "6.1" name = "Invocation Syntax"/>
<section id = "6.2" name = "Tag Library Descriptor Information"/>
<section id = "6.3" name = "Example"/>
<section id = "6.4" name = "Semantics"/>
<section id = "7" name = "Implicit Objects"/>
<section id = "8" name = "Type Conversion"/>
<section id = "8.1" name = "To coerce a value X to type Y"/>
<section id = "8.2" name = "Coerce A to String"/>
<section id = "8.3" name = "Coerce A to Number type N"/>
<section id = "8.4" name = "Coerce A to Character"/>
<section id = "8.5" name = "Coerce A to Boolean"/>
<section id = "8.6" name = "Coerce A to any other type T"/>
<section id = "9" name = "Collected Syntax"/>
</sections>
</chapter>
<chapter id = "3" name = "JSP Configuration">
<sections>
<section id = "1" name = "JSP configuration information in web.xml"/>
<section id = "2" name = "Taglib map"/>
<section id = "3" name = "JSP Property Groups"/>
<section id = "3.1" name = "JSP Property Groups"/>
<section id = "3.2" name = "Enabling EL Evaluation"/>
<section id = "3.3" name = "Enabling Scripting"/>
<section id = "3.4" name = "Declaring Page Encodings"/>
<section id = "3.5" name = "Defining Implicit Includes"/>
<section id = "3.6" name = "Denoting XML Documents"/>
</sections>
</chapter>
<chapter id = "4" name = "Localization Issues">
<sections>
<section id = "1" name = "Page Character Encoding"/>
<section id = "2" name = "Static Content Type"/>
<section id = "3" name = "Dynamic Content Type and Character Encoding"/>
<section id = "4" name = "Delivering Localized Content"/>
</sections>
</chapter>
<chapter id = "5" name = "Standard Actions">
<sections>
<section id = "1" name = "<jsp:useBean>"/>
<section id = "2" name = "<jsp:setProperty>"/>
<section id = "3" name = "<jsp:getProperty>"/>
<section id = "4" name = "<jsp:include>"/>
<section id = "5" name = "<jsp:forward>"/>
<section id = "6" name = "<jsp:param>"/>
<section id = "6.1" name = "Syntax"/>
<section id = "7" name = "<jsp:plugin>"/>
<section id = "8" name = "<jsp:params>"/>
<section id = "9" name = "<jsp:fallback>"/>
<section id = "10" name = "<jsp:attribute>"/>
<section id = "11" name = "<jsp:body>"/>
<section id = "12" name = "<jsp:invoke>"/>
<section id = "12.1" name = "Basic Usage"/>
<section id = "12.2" name = "Storing Fragment Output"/>
<section id = "12.3" name = "Passing Parameters"/>
<section id = "13" name = "<jsp:doBody>"/>
<section id = "14" name = "Other Standard Actions"/>
</sections>
</chapter>
<chapter id = "6" name = "JSP and XML">
<sections>
<section id = "1" name = "JSP Documents"/>
<section id = "1.1" name = "Semantic Model"/>
<section id = "1.2" name = "Namespaces, Standard Actions and Tag Libraries"/>
<section id = "2.3" name = "The 'jsp:root' element"/>
<section id = "2.4" name = "The 'jsp:directive.page' element"/>
<section id = "2.5" name = "The 'jsp:directive:include' element"/>
<section id = "2.6" name = "The 'jsp:declaration' element"/>
<section id = "2.7" name = "The 'jsp:scriptlet' element"/>
<section id = "2.8" name = "The 'jsp:expression' element"/>
<section id = "2.9" name = "The jsp:element element"/>
<section id = "2.10" name = "The 'jsp:text' element"/>
<section id = "2.11" name = "Other XML elements"/>
<section id = "3" name = "XML View of a JSP Page"/>
<section id = "3.1" name = "JSP Documents"/>
<section id = "3.2" name = "JSP Pages in JSP Syntax"/>
<section id = "3.3" name = "JSP Comments"/>
<section id = "3.4" name = "The 'page' directive"/>
<section id = "3.5" name = "The 'taglib' directive'"/>
<section id = "3.6" name = "The 'include' directive"/>
<section id = "3.7" name = "Declarations"/>
<section id = "3.8" name = "Scriptlets"/>
<section id = "3.9" name = "Expressions"/>
<section id = "3.10" name = "Standard and Custom Actions"/>
<section id = "3.11" name = "Request-Time Attribute Expressions"/>
<section id = "3.12" name = "Template Text and XML Elements"/>
<section id = "3.13" name = "The 'jsp:id' Attribute"/>
<section id = "4" name = "Validating an XML View of a JSP page"/>
<section id = "5" name = "Examples"/>
<section id = "5.1" name = "A JSP Document"/>
<section id = "5.2" name = "A JSP page and its corresponding JSP document"/>
</sections>
</chapter>
<chapter id = "7" name = "Tag Extensions">
<sections>
<section id = "1" name = "Introduction"/>
<section id = "1.1" name = "Goals"/>
<section id = "1.2" name = "Overview"/>
<section id = "1.3" name = "Classic Tag Handlers"/>
<section id = "1.4" name = "Simple Examples of Classic Tag Handlers"/>
<section id = "1.4.1" name = "Simple Actions"/>
<section id = "1.4.2" name = "Actions with a Body"/>
<section id = "1.4.3" name = "Conditionals"/>
<section id = "1.4.4" name = "Iterations"/>
<section id = "1.4.5" name = "Actions that Process their Body"/>
<section id = "1.4.6" name = "Cooperating Actions"/>
<section id = "1.4.7" name = "Actions Defining Scripting Variables"/>
<section id = "1.5" name = "Simple Tag Handlers"/>
<section id = "1.6" name = "JSP Fragments"/>
<section id = "1.7" name = "Simple Examples of Simple Tag Handlers"/>
<section id = "1.7.1" name = "Simple Actions"/>
<section id = "1.7.2" name = "Actions with a Body"/>
<section id = "1.7.3" name = "Conditionals"/>
<section id = "1.7.4" name = "Iterations"/>
<section id = "1.7.5" name = "Actions that Process their Body"/>
<section id = "1.7.6" name = "Cooperating Actions"/>
<section id = "1.8" name = "Attributes with Dynamic Values"/>
<section id = "1.9" name = "Event Listeners"/>
<section id = "2" name = "Tag Libraries"/>
<section id = "2.1" name = "Packaged Tag Libraries"/>
<section id = "2.2" name = "Location of Java Classes"/>
<section id = "2.3" name = "Tag Library Directive"/>
<section id = "3" name = "The Tag Library Descriptor"/>
<section id = "3.1" name = "Identifying Tag Library Descriptors"/>
<section id = "3.2" name = "TLD resource path"/>
<section id = "3.3" name = "Taglib map in web.xml"/>
<section id = "3.4" name = "Implicit Map entries from TLDs"/>
<section id = "3.5" name = "Implicit Map entries from the Container"/>
<section id = "3.6" name = "Determining the TLD Resource Path"/>
<section id = "3.6.1" name = "Computing the TLD Locations"/>
<section id = "3.6.2" name = "Computing the TLD Resource Path"/>
<section id = "3.6.3" name = "Usage Considerations"/>
<section id = "3.7" name = "Translation-Time Class Loader"/>
<section id = "3.8" name = "Assembling a Web Application"/>
<section id = "3.9" name = "Well-Known URIs"/>
<section id = "3.10" name = "Tag and Tag Library Extension Elements"/>
<section id = "3.10.1" name = "Example"/>
<section id = "4" name = "Validation"/>
<section id = "4.1" name = "Translation-Time Mechanism"/>
<section id = "4.1.1" name = "Attribute Information"/>
<section id = "4.1.2" name = "Validator Classes"/>
<section id = "4.1.3" name = "TagExtraInfo Class Validation"/>
<section id = "4.1.4" name = "Request-Time Errors"/>
<section id = "5" name = "Conventions and Other Issues"/>
<section id = "5.1" name = "How to Define New Implicit Objects"/>
<section id = "5.2" name = "Access to Vendor-Specific Information"/>
<section id = "5.3" name = "Customizing a Tag Library"/>
</sections>
</chapter>
<chapter id = "8" name = "Tag Files">
<sections>
<section id = "1" name = "Overview"/>
<section id = "2" name = "Syntax of Tag Files"/>
<section id = "3" name = "Sematics of Tag Files"/>
<section id = "4" name = "Packaging Tag Files"/>
<section id = "4.1" name = "Location of Tag Files"/>
<section id = "4.2" name = "Packaging in a JAR"/>
<section id = "4.3" name = "Packaging Directly in a Web Application"/>
<section id = "4.4" name = "Packaging as Precompiled Tag Handlers"/>
<section id = "5" name = "Tag File Directives"/>
<section id = "5.1" name = "The 'tag' directive"/>
<section id = "5.2" name = "The 'attribute' directive"/>
<section id = "5.3" name = "The 'variable' directive"/>
<section id = "6" name = "XML View of a Tag File"/>
</sections>
</chapter>
<chapter id = "9" name = "Scripting">
<sections>
<section id = "1" name = "Overall Structure"/>
<section id = "1.1" name = "Valid JSP Page"/>
<section id = "1.2" name = "Reserved Names"/>
<section id = "1.3" name = "Implementation Flexibility"/>
<section id = "2" name = "Declarations Section"/>
<section id = "3" name = "Initialization Section"/>
<section id = "4" name = "Main Section"/>
<section id = "4.1" name = "Template Data"/>
<section id = "4.2" name = "Scriptlets"/>
<section id = "4.3" name = "Expressions"/>
<section id = "4.4" name = "Actions"/>
</sections>
</chapter>
<chapter id = "10" name = "JSP Container">
<sections>
<section id = "1" name = "JSP Page Model"/>
<section id = "1.1" name = "Protocol Seen by the Web Server"/>
<section id = "1.1.1" name = "Protocol Seen by the JSP Page Author"/>
<section id = "1.1.2" name = "The HttpJspPage Interface"/>
<section id = "2" name = "JSP Page Implementation Class"/>
<section id = "2.1" name = "API Contracts"/>
<section id = "2.2" name = "Request and Response Parameters"/>
<section id = "2.3" name = "Omitting the 'extends' Attribute"/>
<section id = "2.4" name = "Using the 'extends' Attribute"/>
<section id = "3" name = "Buffering"/>
<section id = "4" name = "Precompilation"/>
<section id = "4.1" name = "Request Parameter Names"/>
<section id = "4.2" name = "Precompilation Protocol"/>
<section id = "5" name = "Debugging Requirements"/>
</sections>
</chapter>
<chapter id = "11" name = "Core API">
<sections>
<section id = "1" name = "JSP Page Implementation Object Contract"/>
<section id = "1.1" name = "JspPage"/>
<section id = "1.1.1" name = "Methods"/>
<section id = "1.2" name = "HttpJspPage"/>
<section id = "1.2.1" name = "Methods"/>
<section id = "1.3" name = "JspFactory"/>
<section id = "1.3.1" name = "Constructors"/>
<section id = "1.3.2" name = "Methods"/>
<section id = "1.4" name = "JspEngineInfo"/>
<section id = "1.4.1" name = "Constructors"/>
<section id = "1.4.2" name = "Methods"/>
<section id = "2" name = "Implicit Objects"/>
<section id = "2.1" name = "JspContext"/>
<section id = "2.1.1" name = "Fields"/>
<section id = "2.1.2" name = "Constructors"/>
<section id = "2.1.3" name = "Methods"/>
<section id = "2.2" name = "PageContext"/>
<section id = "2.2.1" name = "Fields"/>
<section id = "2.2.2" name = "Constructors"/>
<section id = "2.2.3" name = "Methods"/>
<section id = "2.3" name = "JspWriter"/>
<section id = "2.3.1" name = "Fields"/>
<section id = "2.3.2" name = "Constructors"/>
<section id = "2.3.3" name = "Methods"/>
<section id = "2.4" name = "ErrorData"/>
<section id = "2.4.1" name = "Constructors"/>
<section id = "2.4.2" name = "Methods"/>
<section id = "3" name = "An Implementation Example"/>
<section id = "4" name = "Exceptions"/>
<section id = "4.1" name = "JspException"/>
<section id = "4.1.1" name = "Constructors"/>
<section id = "4.1.2" name = "Methods"/>
<section id = "4.2" name = "JspTagException"/>
<section id = "4.2.1" name = "Constructors"/>
<section id = "4.3" name = "SkipPageException"/>
<section id = "4.3.1" name = "Constructors"/>
</sections>
</chapter>
<chapter id = "12" name = "Tag Extension API">
<sections>
<section id = "1" name = "Classic Tag Handlers"/>
<section id = "1.1" name = "Tag"/>
<section id = "1.1.1" name = "Fields"/>
<section id = "1.1.2" name = "Methods"/>
<section id = "1.2" name = "IterationTag"/>
<section id = "1.2.1" name = "Fields"/>
<section id = "1.2.2" name = "Methods"/>
<section id = "1.3" name = "TryCatchFinally"/>
<section id = "1.3.1" name = "Methods"/>
<section id = "1.4" name = "TagSupport"/>
<section id = "1.4.1" name = "Fields"/>
<section id = "1.4.2" name = "Constructors"/>
<section id = "1.4.3" name = "Methods"/>
<section id = "2" name = "Tag Handlers that want Access to their Body Content"/>
<section id = "2.1" name = "BodyContent"/>
<section id = "2.1.1" name = "Constructors"/>
<section id = "2.1.2" name = "Methods"/>
<section id = "2.2" name = "BodyTag"/>
<section id = "2.2.1" name = "Fields"/>
<section id = "2.2.2" name = "Methods"/>
<section id = "2.3" name = "BodyTagSupport"/>
<section id = "2.3.1" name = "Fields"/>
<section id = "2.3.2" name = "Constructors"/>
<section id = "2.3.3" name = "Methods"/>
<section id = "3" name = "Dynamic Attributes"/>
<section id = "3.1" name = "DynamicAttributes"/>
<section id = "3.1.1" name = "Methods"/>
<section id = "4" name = "Annotated Tag Handler Management Example"/>
<section id = "5" name = "Cooperating Actions"/>
<section id = "6" name = "Simple Tag Handlers"/>
<section id = "6.1" name = "SimpleTag"/>
<section id = "6.1.1" name = "Methods"/>
<section id = "6.2" name = "JspFragment"/>
<section id = "6.2.1" name = "Methods"/>
<section id = "6.3" name = "TagAdapter"/>
<section id = "6.3.1" name = "Constructors"/>
<section id = "6.3.2" name = "Methods"/>
<section id = "7" name = "JSP Fragments"/>
<section id = "7.1" name = "JspFragment"/>
<section id = "7.1.1" name = "Methods"/>
<section id = "8" name = "Example Simple Tag Handler Secnario"/>
<section id = "9" name = "Translation-time Classes"/>
<section id = "9.1" name = "TagLibraryInfo"/>
<section id = "9.1.1" name = "Fields"/>
<section id = "9.1.2" name = "Constructors"/>
<section id = "9.1.3" name = "Methods"/>
<section id = "9.2" name = "TagInfo"/>
<section id = "9.2.1" name = "Fields"/>
<section id = "9.2.2" name = "Constructors"/>
<section id = "9.2.3" name = "Methods"/>
<section id = "9.3" name = "TagAttributeInfo"/>
<section id = "9.3.1" name = "Fields"/>
<section id = "9.3.2" name = "Constructors"/>
<section id = "9.3.3" name = "Methods"/>
<section id = "9.4" name = "PageData"/>
<section id = "9.4.1" name = "Constructors"/>
<section id = "9.4.2" name = "Methods"/>
<section id = "9.5" name = "TagLibraryValidator"/>
<section id = "9.5.1" name = "Constructors"/>
<section id = "9.5.2" name = "Methods"/>
<section id = "9.6" name = "ValidationMessage"/>
<section id = "9.6.1" name = "Constructors"/>
<section id = "9.6.2" name = "Methods"/>
<section id = "9.7" name = "TagExtraInfo"/>
<section id = "9.7.1" name = "Constructors"/>
<section id = "9.7.2" name = "Methods"/>
<section id = "9.8" name = "TagData"/>
<section id = "9.8.1" name = "Fields"/>
<section id = "9.8.2" name = "Constructors"/>
<section id = "9.8.3" name = "Methods"/>
<section id = "9.9" name = "VariableInfo"/>
<section id = "9.9.1" name = "Fields"/>
<section id = "9.9.2" name = "Constructors"/>
<section id = "9.9.3" name = "Methods"/>
<section id = "9.10" name = "TagVariableInfo"/>
<section id = "9.10.1" name = "Constructors"/>
<section id = "9.10.2" name = "Methods"/>
</sections>
</chapter>
<chapter id = "13" name = "Expression Language API">
<sections>
<section id = "1" name = "Expression Evaluator"/>
<section id = "1.1" name = "ExpressionEvaluator"/>
<section id = "1.1.1" name = "Methods"/>
<section id = "1.2" name = "Expression"/>
<section id = "1.2.1" name = "Methods"/>
<section id = "1.3" name = "VariableResolver"/>
<section id = "1.3.1" name = "Methods"/>
<section id = "1.4" name = "FunctionMapper"/>
<section id = "1.4.1" name = "Methods"/>
<section id = "2" name = "Exceptions"/>
<section id = "2.1" name = "ELException"/>
<section id = "2.1.1" name = "Constructors"/>
<section id = "2.1.2" name = "Methods"/>
</sections>
</chapter>
</chapters>
</location-names>
<assertions>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>It is illegal JSP syntax, which must result in a translation error, to use both an XML element attribute and a <jsp:attribute> standard action to pass the value of the same attribute.</description>
<location chapter = "1" section = "3.6"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error will result if the custom action invocation has <jsp:attribute> elements but does not define the body using a <jsp:body> element.</description>
<location chapter = "1" section = "3.6"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>White space within the body text of a document is not significant, but is preserved.</description>
<location chapter = "1" section = "3.8"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>Fatal translation failures shall result in the failure of subsequent client requests for the translation target with the appropriate error specification: For HTTP protocols the error status code 500 (Server Error) is returned.</description>
<location chapter = "1" section = "4.1"/>
<comment>While this could be deemed as testable, there are several areas in the spec that state a fatal translation error will occur in a specific case. That is where this assertion will be exercised.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>HTML comments present within a particular translation unit are treated as uninterpreted template text by the JSP container.</description>
<location chapter = "1" section = "5.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The body content of a JSP comment is ignored completely.</description>
<location chapter = "1" section = "5.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>For JSP's in standard syntax, a literal %> is quoted by %\>, a literal <% is quoted by <\%, a single quote (') is quotes as \', a double quite (") is quoted as \", a backslash (\) is quoted as \\, additionally, the entities \' and \" are available to describe single and double quotes.</description>
<location chapter = "1" section = "6"/>
<comment>Use the examples in JSP.1.6 to create a test.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Objects with page scope are accessible only within the target page they are created. All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwareded somwhere else. References to objects with page scope are stored in the 'pageContext' object.</description>
<location chapter = "1" section = "8.2"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Objects with request scope are accessible from pages processing the same request where they were created. References to the object shall be released after the request is processed. In particular, if the request is forwarded to a resource in the same runtime, the object is still reachable. References to objects with request scope are stored in the 'request' object.</description>
<location chapter = "1" section = "8.2"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Objects with session scope are accessible from pages processing requests that in the same session as the one in which they were created. It is not legal to define an object with session scope from within a page that is not session-aware. All references to the object shall be released after the associated session ends. References to objects with session scope are stored in the 'session' object associated with the page activation.</description>
<location chapter = "1" section = "8.2"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Objects with application scope are accessible from pages processing requests that are in the same application as the one in which they were created. Objects with application scope can be defined (and reached) from pages that are not session-aware. References to objects with application scope are stored in the 'application' object associated with a page activation. The 'application' object is the servlet context obtained from the servlet configuration object. All references to the object shall be released when the runtime environment reclaims the ServletContext.</description>
<location chapter = "1" section = "8.2"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'request' implicit object is an instance of javax.servlet.ServletRequest; if the protocol used is HTTP, then the request object is an instance of javax.servlet.http.HttpServletRequest (request scope).</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'response' implicit object is an instance of javax.servlet.ServletResponse; if the protocol used is HTTP, then the response object is an instance of javax.servlet.http.HttpServletResponse (page scope)</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'pageContext' implicit object is an instance of javax.servlet.jsp.PageContext (page scope).</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'session' implicit object is an instance of javax.servlet.http.HttpSession and is only valid for HTTP protocols (session scope).</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'application' implicit object is an instance of javax.servlet.ServletContext (same object as that returned from getServletConfig().getContext(); application scope).</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'exception' implicit object is an instance of java.lang.Throwable (page scope) and is only available in errro pages.</description>
<location chapter = "1" section = "8.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>White space may or may not be present after '<@%' and before '%>' within JSP directives.</description>
<location chapter = "1" section = "10"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Directives do not produce any output into the current 'out' stream.</description>
<location chapter = "1" section = "10"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The page directive can appear multiple times, and is position independent within a given translation unit.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error will occur if the page directive defines duplicate attribute/values within a give translation unit, with the exception of the import attribute.</description>
<location chapter = "1" section = "10.1"/>
<comment>NOTE: This may change. Reference PageDirectiveUniqueAttr validity constraint.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'isScriptingEnabled' attribute of the page directive, if true, allows the presence of scripting elements (scriptlets, expressions, declarations) within a given translation unit.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUBMER_</id>
<description>The 'isScriptingEnabled' attribute of the page directive, if false, disallows the presence of scripting elements (scriptlets, expressions, declarations) within a given translation unit and will generate a translation error if they are present.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The default value for 'isScriptingEnabled' of the page directive, if not specified, is true.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'isELEnabled' attribute of the page directive, if true, directs the container to evaluate EL expressions.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'isELEnabled' attribute of the page directive , if false, will result in EL expressions not being evaluated by the container.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the JSP is part of a Web application that is using a Servlet 2.3 deployment descriptor, the default value for the 'isELEnabled' attribute of the page directive is false.</description>
<location chapter = "1" section = "10.1"/>
<comment>Reference section JSP.2.2.4 Deactivating EL Evaluation</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the JSP is part of a Web application that is using a Servlet 2.4 deployment descriptor, the default value for the 'isELEnabled' attribute of the page directive is true.</description>
<location chapter = "1" section = "10.1"/>
<comment>Reference section JSP.2.2.4 Deactivating EL Evaluation</comment>
</assertion>
<assertion required = "true" impl-spec = "true" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>All scripting languages, specifiable by the page directive's 'language' attribute, must provide some implicit objects that a JSP page author can use in declarations, scriptlets, and expressions (see Section JSP.1.3.8 for list of available implicit objects)</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "true" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>All scripting languages, specifiable by the page directive's 'language' attribute, must expose the Java technology object model to the script environment, especially implicit variables, JavaBeans components properties, and public methods.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>It is a fatal translation error for a page directive with a non-"java" language attribute to appear after the first scripting has been encountered.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The only required scripting language value for the 'language' attribute is "java".</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'extends' attribute of the page directive specifies a fully qualified Java programming language class name, that names the superclass of the class to which this JSP page is transformed</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'import' attribute of the page directive specifies the fully qualified Java programming language type name denoting a particular type, or of a package name following by the ".*" string, denoting all the public types declared in that package, that shall be imorted by the translated JSP page implementation and is thus available to the scripting language.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The default import list for a JSP page is java.lang.*, javax.servlet.*, javax.servlet.jsp.*, javax.servlet.http.*</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'session' attribute of the page directive, when true, indicates that the JSP page requires participation in an HTTP session.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'session' attribute of the page directive, when false, indicates that the JSP page does not participate in an HTTP session; the 'session' implicit object is not available to the page, and any reference to it within the translation unit will result in a translation error.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'session' attribute of the page directive is not specified by a page directive, then the page will, by default, participate in an HTTP session (default value of true).</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'buffer' attribute of the page directive is not specified, no buffering will be performed and all output will be written directly through to the ServletResponse PrintWriter.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The size value specified by the 'buffer' attribute of the page directive must be in kilobytes, and the suffix "kb" is mandatory.</description>
<location chapter = "1" section = "10.1"/>
<comment>NOTE: Spec is unclear as to what happens if a different suffix is used, or is not present. Most likely a translation error.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The container must allocate a buffer at least as large as that specified by the 'buffer' attribute of the page directive.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The default buffer size of 8kb will be used if the 'buffer' attribute of the page directive is not specified.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'autoFlush' attribute of the page directive is true, the output will be automatically flushed when the buffer is filled.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'autoFlush' attribute of the page directive is false, an exception will be raised to indicate a buffer overflow.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>It is illegal to set the 'autoFlush' attribute of the page directive to false, if the 'buffer' attribute is set to none.</description>
<location chapter = "1" section = "10.1"/>
<comment>NOTE: This section needs to be clarified in the spec. Illegal most likely, in this case, means a translation error, but this should be clearly spelled out.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'isThreadSafe' attribute of the page directive is false, the container must serialize requests to the JSP (it should behave like an STM servlet).</description>
<location chapter = "1" section = "10.1"/>
<comment>Cannot test isThreadSafe="true" as the keyword 'may' is present. An implementation could potentially serialize requests in this case as well....thought I don't know why they would.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'info' attribute of the page directive specifies an arbitrary string that is incorporated into the translated page, that can subsequently be obtained from the page's implementation of Servlet.getServletInfo().</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'isErrorPage' attribute of the page directive. when true, will cause the implicit script language variable "exception" to be defined and its value is a reference to the offending Throwable from the source JSP page in error.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'isErrorPage' attribute of the page directive is defined as false, then the implicit script language variable "exception" will not be available, and any such reference to this variable will result in a translation error.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'errorPage' attribute of the page directive, specifies the URL, either page-relative or context-relative, of a resource to which any Java programming language Throwable object(s) thrown but not caught by the page implementation are forwarded for error processing. The following request attributes will be made available within the error page:</description>
<location chapter = "1" section = "10.1"/>
<sub-assertions>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.jsp.jspException - throw Throwable object of the offending exception (for backwards compatibility with JSP 1.2)</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.err.exception - as per the Servlet specification.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.error.status_code - as per the Servlet specification</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.error.exception_type - as per the Servlet specification.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.err.message - as per the Servlet specification.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.error.request_uri - as per the Servlet specification.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>javax.servlet.error.servlet_name - as per the Servlet specification.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>An instance of javax.servlet.jsp.ErrorData must be provided to the error page.</description>
<location chapter = "1" section = "4.3"/>
</assertion>
</sub-assertions>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If the 'errorPage' attribute of the page directive is defined, it will take presendence over any error pages defined in the web application's deployment descriptor.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The character encoding (Content-Type response header) can be in the form of TYPE, or TYPE; Charset=CHARSET, with an optional white space after the ';'. Charset, if present, must be the IANA value for a character encoding. Similarly, if TYPE is a MIME type, see the IANA registry for values.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The default Content-Type for JSP Pages in classic syntax is "text/html".</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If a charset portion of the value provided to the 'contentType' attribute is not specified, but the page encoding for the JSP page is specified, then the charset used will be that of the specified page encoding.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If a charset is not provided as part of the 'contentType' attribute value, and the page encoding does not specifiy a type, then the default charset is ISO-8859-1 for JSP pages in classic syntax.</description>
<location chapter = "1" section = "10.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If a charset is not provided as part of the 'contentType' attribute value, and the page encoding does not specifiy a type, then the default charset is UTF-8 for JSP pages in XML syntax.</description>
<location chapter = "1" section = "10.1"/>
<comment>Would UTF-16 be valid as well?</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'pageEncoding' attribute of the page directive specifies the character encoding of the page. The value is in the form of CHARSET which my be the IANA value for a character encoding. If no 'pageEncoding' attribute is specified, the default of ISO-8859-1 will be used.</description>
<location chapter = "1" section = "10.1"/>
<comment>What about the default encoding for JSP pages in XML syntax?</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>It is a translation error for the taglib directive to appear after actions that use the prefix specified by the directive.</description>
<location chapter = "1" section = "10.4"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'uri' attribute of the taglib directive specifies either an absolute or relative URI that uniquely identifies the tag library descriptor associated with this prefix.</description>
<location chapter = "1" section = "10.4"/>
<comment>URI and taglibrary determination is defined in Chapter 7</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'tagdir' attribute of the taglib directive indicates that the specified prefix is to be used to identify tag extensions installed in the /WEB-INF/tags directory or a subdirectory.</description>
<location chapter = "1" section = "10.4"/>
<comment>Refer to JSP8.4.3 for more details.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error must occur if the value provided to the 'tagdir' attribute of the taglib directive doesn't start with '/WEB-INF/tags' and point to a directory that exists within the web application.</description>
<location chapter = "1" section = "10.4"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error must occur if the 'prefix' attribute of the taglib directive is not present.</description>
<location chapter = "1" section = "10.4"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error must occur if both the 'tagdir' and 'uri' attributes are present in the same taglib directive.</description>
<location chapter = "1" section = "10.4"/>
<comment>Refer to EBNF</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'prefix' attribute of the taglib directive is used to distinguish a custom action, e.g <myPrefix:myTag>.</description>
<location chapter = "1" section = "10.4"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>The value provided to the 'prefix' attribute of the taglib directive must follow the naming convention specified in the XML namespaces specification.</description>
<location chapter = "1" section = "10.4"/>
<comment>Marked as not testable as there it could be container specific as to what happens in this case (most likely a translation error if they did check).</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>It is illegal to provide an empty prefix to the taglib directive.</description>
<location chapter = "1" section = "10.4"/>
<comment>Marked as not testable. What exactly does illegal mean? Again, most likely a translation time issue, but would be good to have clarity.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error will occur if the tag name provided in the custom action isn't found in the taglibrary designated by the prefix.</description>
<location chapter = "1" section = "10.4"/>
</assertion>
<assertion required = "false" impl-spec = "true" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>A JSP container can include a mechanism for being notified if an included file changes, so the container can recompile the JSP page. However, the JSP 2.0 specification does not have a way of directing the JSP container that included files have changed.</description>
<location chapter = "1" section = "10.5"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The 'file' attribute of the include directive specifies the resource to be imported either relative to web appliation context path, or relative to the page performing the include.</description>
<location chapter = "1" section = "10.5"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>The include directive includes content at translation time meaning the bytes of the included resource are directly inserted into the page. </description>
<location chapter = "1" section = "10.5"/>
<comment>Could test this by having a resource that checks for an attribute in the request, since it's included in place without including the result, the attribute would be null..</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>All JSP containers must support scripting elements based on the Java programming language.</description>
<location chapter = "1" section = "12"/>
<comment>Marked as untestable as this is a blanket assertion that covers who the spec is currently written.</comment>
</assertion>
<assertion required = "true" impl-spec = "true" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>Any other scripting languages that may be supported by a JSP container must support: The manipulation of Java objects; Invocation of methods on Java objects; Catching of Java language excepitons.</description>
<location chapter = "1" section = "12"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A declaration (<% DECL_BODY %>) must be a complete declarative statment, or sequence thereof, according to the syntax of the scripting language specified, otherwise a translation error will occur.</description>
<location chapter = "1" section = "12.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Declartaions do not produce any output into the current out stream.</description>
<location chapter = "1" section = "12.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Declarations are initialized when the JSP page is initialized and are made available to other delcarations, scriptlets, and expressions.</description>
<location chapter = "1" section = "12.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Scriptlets (<% SCRIPTLET_BODY %>) can contain any code framents that are valid for the scripting language specified by the 'language' attribute of the page directive, and are executed at request time in the order that they appear on the JSP page.</description>
<location chapter = "1" section = "12.2"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>An expression element in a JSP page is a scripting language expression that is evaluated and the result is coerced to a String and emitted into the current JspWriter (out) object.</description>
<location chapter = "1" section = "12.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>If the result of the expression cannot be coerced to a String, the following must happen: If the problem is detected at translation time, a translation time error shall occur. If the coercion cannot be detected during translation, a ClassCaseException shall be raised at request time.</description>
<location chapter = "1" section = "12.3"/>
<comment>This detection mechanism will be container dependant. Cannot test.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Expressions are evaluated left to right in the JSP page. </description>
<location chapter = "1" section = "12.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>If an expression appears in more than one run-time attribute, they are evaluated left-to-right in the element.</description>
<location chapter = "1" section = "12.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error will occur if the expression is not a complete expression in the scripting language in which it is written.</description>
<location chapter = "1" section = "12.3"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Request-time attribute values in the form of '<%= scriptlet_expr %>' are only usable by actions, and cannot be used in directives.</description>
<location chapter = "1" section = "14.1"/>
<comment>Mark, you wanted to revisit this....</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>A translation error will occur if a request-time attribute exception does not appear by itself (multiple expressions, and mixing of expressions and string constands are not permitted).</description>
<location chapter = "1" section = "14.1"/>
<comment>I assume this will be a translation error. Correct if necessary.</comment>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Any attempt to provide an attribute value via a request-time expression that doesn't accept request-time expressions, will result in a translation error.</description>
<location chapter = "1" section = "14.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "false">
<id>_NUMBER_</id>
<description>A type conversion failure for a static attribute can lead to a failure at either request or translation time.</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to a JavaBean property is done via setAtText(string-literal).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to boolean or Boolean is performed as indicated in java.lang.Boolean.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to byte or Byte is performed as indiciated in java.lang.Byte.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to char or Character is performed as indicated in String.charAt(0).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to double or Double is performed as indiciated in java.lang.Double.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to int or Integer is performed as indiciated in java.lang.Integer.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to float or Float is performed as indicated in java.lang.Float.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to long or Long is perfomed as indicated in java.lang.Long.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to short or Short is performed as indicated in java.lang.Short.valueOf(String).</description>
<location chapter = "1" section = "14.2.1"/>
</assertion>
<assertion required = "true" impl-spec = "false" defined-by = "technology" status = "active" testable = "true">
<id>_NUMBER_</id>
<description>Conversion of string values to Object is performed as if new String(string).</description>