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

« back to all changes in this revision

Viewing changes to contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextTag.java

  • 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
1
/*
2
 
 * $Header: /home/cvs/jakarta-struts/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextTag.java,v 1.8 2004/03/14 07:15:01 sraeburn Exp $
3
 
 * $Revision: 1.8 $
4
 
 * $Date: 2004/03/14 07:15:01 $
 
2
 * $Id: ELTextTag.java 373801 2006-01-31 12:18:48Z niallp $ 
5
3
 *
6
 
 * Copyright 1999-2004 The Apache Software Foundation.
 
4
 * Copyright 1999-2006 The Apache Software Foundation.
7
5
 * 
8
6
 * Licensed under the Apache License, Version 2.0 (the "License");
9
7
 * you may not use this file except in compliance with the License.
33
31
 * be specified as expressions utilizing the JavaServer Pages Standard Library
34
32
 * expression language.
35
33
 *
36
 
 * @version $Revision: 1.8 $
 
34
 * @version $Rev: 373801 $
37
35
 */
38
36
public class ELTextTag extends TextTag {
39
37
 
53
51
     */
54
52
    private String altKeyExpr;
55
53
    /**
 
54
     * Instance variable mapped to "bundle" tag attribute.
 
55
     * (Mapping set in associated BeanInfo class.)
 
56
     */
 
57
    private String bundleExpr;
 
58
    /**
56
59
     * Instance variable mapped to "disabled" tag attribute.
57
60
     * (Mapping set in associated BeanInfo class.)
58
61
     */
59
62
    private String disabledExpr;
60
63
    /**
 
64
     * Instance variable mapped to "errorKey" tag attribute.
 
65
     * (Mapping set in associated BeanInfo class.)
 
66
     */
 
67
    private String errorKeyExpr;
 
68
    /**
 
69
     * Instance variable mapped to "errorStyle" tag attribute.
 
70
     * (Mapping set in associated BeanInfo class.)
 
71
     */
 
72
    private String errorStyleExpr;
 
73
    /**
 
74
     * Instance variable mapped to "errorStyleClass" tag attribute.
 
75
     * (Mapping set in associated BeanInfo class.)
 
76
     */
 
77
    private String errorStyleClassExpr;
 
78
    /**
 
79
     * Instance variable mapped to "errorStyleId" tag attribute.
 
80
     * (Mapping set in associated BeanInfo class.)
 
81
     */
 
82
    private String errorStyleIdExpr;
 
83
    /**
61
84
     * Instance variable mapped to "indexed" tag attribute.
62
85
     * (Mapping set in associated BeanInfo class.)
63
86
     */
204
227
     */
205
228
    public String getAltKeyExpr() { return (altKeyExpr); }
206
229
    /**
 
230
     * Getter method for "bundle" tag attribute.
 
231
     * (Mapping set in associated BeanInfo class.)
 
232
     */
 
233
    public String getBundleExpr() { return (bundleExpr); }
 
234
    /**
207
235
     * Getter method for "disabled" tag attribute.
208
236
     * (Mapping set in associated BeanInfo class.)
209
237
     */
210
238
    public String getDisabledExpr() { return (disabledExpr); }
211
239
    /**
 
240
     * Getter method for "errorKey" tag attribute.
 
241
     * (Mapping set in associated BeanInfo class.)
 
242
     */
 
243
    public String getErrorKeyExpr() { return (errorKeyExpr); }
 
244
    /**
 
245
     * Getter method for "errorStyle" tag attribute.
 
246
     * (Mapping set in associated BeanInfo class.)
 
247
     */
 
248
    public String getErrorStyleExpr() { return (errorStyleExpr); }
 
249
    /**
 
250
     * Getter method for "errorStyleClass" tag attribute.
 
251
     * (Mapping set in associated BeanInfo class.)
 
252
     */
 
253
    public String getErrorStyleClassExpr() { return (errorStyleClassExpr); }
 
254
    /**
 
255
     * Getter method for "errorStyleId" tag attribute.
 
256
     * (Mapping set in associated BeanInfo class.)
 
257
     */
 
258
    public String getErrorStyleIdExpr() { return (errorStyleIdExpr); }
 
259
    /**
212
260
     * Getter method for "indexed" tag attribute.
213
261
     * (Mapping set in associated BeanInfo class.)
214
262
     */
355
403
     */
356
404
    public void setAltKeyExpr(String altKeyExpr) { this.altKeyExpr = altKeyExpr; }
357
405
    /**
 
406
     * Setter method for "bundle" tag attribute.
 
407
     * (Mapping set in associated BeanInfo class.)
 
408
     */
 
409
    public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; }
 
410
    /**
358
411
     * Setter method for "disabled" tag attribute.
359
412
     * (Mapping set in associated BeanInfo class.)
360
413
     */
361
414
    public void setDisabledExpr(String disabledExpr) { this.disabledExpr = disabledExpr; }
362
415
    /**
 
416
     * Setter method for "errorKey" tag attribute.
 
417
     * (Mapping set in associated BeanInfo class.)
 
418
     */
 
419
    public void setErrorKeyExpr(String errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; }
 
420
    /**
 
421
     * Setter method for "errorStyle" tag attribute.
 
422
     * (Mapping set in associated BeanInfo class.)
 
423
     */
 
424
    public void setErrorStyleExpr(String errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; }
 
425
    /**
 
426
     * Setter method for "errorStyleClass" tag attribute.
 
427
     * (Mapping set in associated BeanInfo class.)
 
428
     */
 
429
    public void setErrorStyleClassExpr(String errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; }
 
430
    /**
 
431
     * Setter method for "errorStyleId" tag attribute.
 
432
     * (Mapping set in associated BeanInfo class.)
 
433
     */
 
434
    public void setErrorStyleIdExpr(String errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; }
 
435
    /**
363
436
     * Setter method for "indexed" tag attribute.
364
437
     * (Mapping set in associated BeanInfo class.)
365
438
     */
499
572
        setAccesskeyExpr(null);
500
573
        setAltExpr(null);
501
574
        setAltKeyExpr(null);
 
575
        setBundleExpr(null);
502
576
        setDisabledExpr(null);
 
577
        setErrorKeyExpr(null);
 
578
        setErrorStyleExpr(null);
 
579
        setErrorStyleClassExpr(null);
 
580
        setErrorStyleIdExpr(null);
503
581
        setIndexedExpr(null);
504
582
        setMaxlengthExpr(null);
505
583
        setNameExpr(null);
560
638
                                            this, pageContext)) != null)
561
639
            setAltKey(string);
562
640
 
 
641
        if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
 
642
                                            this, pageContext)) != null)
 
643
            setBundle(string);
 
644
 
563
645
        if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(),
564
646
                                           this, pageContext)) != null)
565
647
            setDisabled(bool.booleanValue());
566
648
 
 
649
        if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(),
 
650
                                            this, pageContext)) != null)
 
651
            setErrorKey(string);
 
652
 
 
653
        if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(),
 
654
                                            this, pageContext)) != null)
 
655
            setErrorStyle(string);
 
656
 
 
657
        if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(),
 
658
                                            this, pageContext)) != null)
 
659
            setErrorStyleClass(string);
 
660
 
 
661
        if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(),
 
662
                                            this, pageContext)) != null)
 
663
            setErrorStyleId(string);
 
664
 
567
665
        if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
568
666
                                           this, pageContext)) != null)
569
667
            setIndexed(bool.booleanValue());