1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.strutsel.taglib.html;
19
20 import org.apache.struts.taglib.html.ImgTag;
21 import org.apache.strutsel.taglib.utils.EvalHelper;
22
23 import javax.servlet.jsp.JspException;
24
25 /***
26 * <p>Generate an IMG tag to the specified image URI. </p>
27 *
28 * <p>TODO:</p>
29 *
30 * <ul>
31 *
32 * <li>make the <strong>alt</strong> and <strong>src</strong> settable from
33 * properties (for i18n)</li>
34 *
35 * <li>handle <strong>onLoad</strong>, <strong>onAbort</strong>, and
36 * <strong>onError</strong> events (my JavaScript book is very old, there may
37 * be more unsupported events in the past couple of IE versions) </li>
38 *
39 * </ul>
40 *
41 * <p> This class is a subclass of the class <code>org.apache.struts.taglib.html.ImgTag</code>
42 * which provides most of the described functionality. This subclass allows
43 * all attribute values to be specified as expressions utilizing the
44 * JavaServer Pages Standard Library expression language. </p>
45 *
46 * @version $Rev: 376779 $
47 */
48 public class ELImgTag extends ImgTag {
49 /***
50 * Instance variable mapped to "action" tag attribute. (Mapping set in
51 * associated BeanInfo class.)
52 */
53 private String actionExpr;
54
55 /***
56 * Instance variable mapped to "module" tag attribute. (Mapping set in
57 * associated BeanInfo class.)
58 */
59 private String moduleExpr;
60
61 /***
62 * Instance variable mapped to "align" tag attribute. (Mapping set in
63 * associated BeanInfo class.)
64 */
65 private String alignExpr;
66
67 /***
68 * Instance variable mapped to "alt" tag attribute. (Mapping set in
69 * associated BeanInfo class.)
70 */
71 private String altExpr;
72
73 /***
74 * Instance variable mapped to "altKey" tag attribute. (Mapping set in
75 * associated BeanInfo class.)
76 */
77 private String altKeyExpr;
78
79 /***
80 * Instance variable mapped to "border" tag attribute. (Mapping set in
81 * associated BeanInfo class.)
82 */
83 private String borderExpr;
84
85 /***
86 * Instance variable mapped to "bundle" tag attribute. (Mapping set in
87 * associated BeanInfo class.)
88 */
89 private String bundleExpr;
90
91 /***
92 * Instance variable mapped to "height" tag attribute. (Mapping set in
93 * associated BeanInfo class.)
94 */
95 private String heightExpr;
96
97 /***
98 * Instance variable mapped to "hspace" tag attribute. (Mapping set in
99 * associated BeanInfo class.)
100 */
101 private String hspaceExpr;
102
103 /***
104 * Instance variable mapped to "imageName" tag attribute. (Mapping set in
105 * associated BeanInfo class.)
106 */
107 private String imageNameExpr;
108
109 /***
110 * Instance variable mapped to "ismap" tag attribute. (Mapping set in
111 * associated BeanInfo class.)
112 */
113 private String ismapExpr;
114
115 /***
116 * Instance variable mapped to "locale" tag attribute. (Mapping set in
117 * associated BeanInfo class.)
118 */
119 private String localeExpr;
120
121 /***
122 * Instance variable mapped to "name" tag attribute. (Mapping set in
123 * associated BeanInfo class.)
124 */
125 private String nameExpr;
126
127 /***
128 * Instance variable mapped to "onclick" tag attribute. (Mapping set in
129 * associated BeanInfo class.)
130 */
131 private String onclickExpr;
132
133 /***
134 * Instance variable mapped to "ondblclick" tag attribute. (Mapping set in
135 * associated BeanInfo class.)
136 */
137 private String ondblclickExpr;
138
139 /***
140 * Instance variable mapped to "onkeydown" tag attribute. (Mapping set in
141 * associated BeanInfo class.)
142 */
143 private String onkeydownExpr;
144
145 /***
146 * Instance variable mapped to "onkeypress" tag attribute. (Mapping set in
147 * associated BeanInfo class.)
148 */
149 private String onkeypressExpr;
150
151 /***
152 * Instance variable mapped to "onkeyup" tag attribute. (Mapping set in
153 * associated BeanInfo class.)
154 */
155 private String onkeyupExpr;
156
157 /***
158 * Instance variable mapped to "onmousedown" tag attribute. (Mapping set
159 * in associated BeanInfo class.)
160 */
161 private String onmousedownExpr;
162
163 /***
164 * Instance variable mapped to "onmousemove" tag attribute. (Mapping set
165 * in associated BeanInfo class.)
166 */
167 private String onmousemoveExpr;
168
169 /***
170 * Instance variable mapped to "onmouseout" tag attribute. (Mapping set in
171 * associated BeanInfo class.)
172 */
173 private String onmouseoutExpr;
174
175 /***
176 * Instance variable mapped to "onmouseover" tag attribute. (Mapping set
177 * in associated BeanInfo class.)
178 */
179 private String onmouseoverExpr;
180
181 /***
182 * Instance variable mapped to "onmouseup" tag attribute. (Mapping set in
183 * associated BeanInfo class.)
184 */
185 private String onmouseupExpr;
186
187 /***
188 * Instance variable mapped to "paramId" tag attribute. (Mapping set in
189 * associated BeanInfo class.)
190 */
191 private String paramIdExpr;
192
193 /***
194 * Instance variable mapped to "page" tag attribute. (Mapping set in
195 * associated BeanInfo class.)
196 */
197 private String pageExpr;
198
199 /***
200 * Instance variable mapped to "pageKey" tag attribute. (Mapping set in
201 * associated BeanInfo class.)
202 */
203 private String pageKeyExpr;
204
205 /***
206 * Instance variable mapped to "paramName" tag attribute. (Mapping set in
207 * associated BeanInfo class.)
208 */
209 private String paramNameExpr;
210
211 /***
212 * Instance variable mapped to "paramProperty" tag attribute. (Mapping set
213 * in associated BeanInfo class.)
214 */
215 private String paramPropertyExpr;
216
217 /***
218 * Instance variable mapped to "paramScope" tag attribute. (Mapping set in
219 * associated BeanInfo class.)
220 */
221 private String paramScopeExpr;
222
223 /***
224 * Instance variable mapped to "property" tag attribute. (Mapping set in
225 * associated BeanInfo class.)
226 */
227 private String propertyExpr;
228
229 /***
230 * Instance variable mapped to "scope" tag attribute. (Mapping set in
231 * associated BeanInfo class.)
232 */
233 private String scopeExpr;
234
235 /***
236 * Instance variable mapped to "src" tag attribute. (Mapping set in
237 * associated BeanInfo class.)
238 */
239 private String srcExpr;
240
241 /***
242 * Instance variable mapped to "srcKey" tag attribute. (Mapping set in
243 * associated BeanInfo class.)
244 */
245 private String srcKeyExpr;
246
247 /***
248 * Instance variable mapped to "style" tag attribute. (Mapping set in
249 * associated BeanInfo class.)
250 */
251 private String styleExpr;
252
253 /***
254 * Instance variable mapped to "styleClass" tag attribute. (Mapping set in
255 * associated BeanInfo class.)
256 */
257 private String styleClassExpr;
258
259 /***
260 * Instance variable mapped to "styleId" tag attribute. (Mapping set in
261 * associated BeanInfo class.)
262 */
263 private String styleIdExpr;
264
265 /***
266 * Instance variable mapped to "title" tag attribute. (Mapping set in
267 * associated BeanInfo class.)
268 */
269 private String titleExpr;
270
271 /***
272 * Instance variable mapped to "titleKey" tag attribute. (Mapping set in
273 * associated BeanInfo class.)
274 */
275 private String titleKeyExpr;
276
277 /***
278 * Instance variable mapped to "useLocalEncoding" tag attribute. (Mapping
279 * set in associated BeanInfo class.)
280 */
281 private String useLocalEncodingExpr;
282
283 /***
284 * Instance variable mapped to "usemap" tag attribute. (Mapping set in
285 * associated BeanInfo class.)
286 */
287 private String usemapExpr;
288
289 /***
290 * Instance variable mapped to "vspace" tag attribute. (Mapping set in
291 * associated BeanInfo class.)
292 */
293 private String vspaceExpr;
294
295 /***
296 * Instance variable mapped to "width" tag attribute. (Mapping set in
297 * associated BeanInfo class.)
298 */
299 private String widthExpr;
300
301 /***
302 * Getter method for "action" tag attribute. (Mapping set in associated
303 * BeanInfo class.)
304 */
305 public String getActionExpr() {
306 return (actionExpr);
307 }
308
309 /***
310 * Getter method for "module" tag attribute. (Mapping set in associated
311 * BeanInfo class.)
312 */
313 public String getModuleExpr() {
314 return (moduleExpr);
315 }
316
317 /***
318 * Getter method for "align" tag attribute. (Mapping set in associated
319 * BeanInfo class.)
320 */
321 public String getAlignExpr() {
322 return (alignExpr);
323 }
324
325 /***
326 * Getter method for "alt" tag attribute. (Mapping set in associated
327 * BeanInfo class.)
328 */
329 public String getAltExpr() {
330 return (altExpr);
331 }
332
333 /***
334 * Getter method for "altKey" tag attribute. (Mapping set in associated
335 * BeanInfo class.)
336 */
337 public String getAltKeyExpr() {
338 return (altKeyExpr);
339 }
340
341 /***
342 * Getter method for "border" tag attribute. (Mapping set in associated
343 * BeanInfo class.)
344 */
345 public String getBorderExpr() {
346 return (borderExpr);
347 }
348
349 /***
350 * Getter method for "bundle" tag attribute. (Mapping set in associated
351 * BeanInfo class.)
352 */
353 public String getBundleExpr() {
354 return (bundleExpr);
355 }
356
357 /***
358 * Getter method for "height" tag attribute. (Mapping set in associated
359 * BeanInfo class.)
360 */
361 public String getHeightExpr() {
362 return (heightExpr);
363 }
364
365 /***
366 * Getter method for "hspace" tag attribute. (Mapping set in associated
367 * BeanInfo class.)
368 */
369 public String getHspaceExpr() {
370 return (hspaceExpr);
371 }
372
373 /***
374 * Getter method for "imageName" tag attribute. (Mapping set in associated
375 * BeanInfo class.)
376 */
377 public String getImageNameExpr() {
378 return (imageNameExpr);
379 }
380
381 /***
382 * Getter method for "ismap" tag attribute. (Mapping set in associated
383 * BeanInfo class.)
384 */
385 public String getIsmapExpr() {
386 return (ismapExpr);
387 }
388
389 /***
390 * Getter method for "locale" tag attribute. (Mapping set in associated
391 * BeanInfo class.)
392 */
393 public String getLocaleExpr() {
394 return (localeExpr);
395 }
396
397 /***
398 * Getter method for "name" tag attribute. (Mapping set in associated
399 * BeanInfo class.)
400 */
401 public String getNameExpr() {
402 return (nameExpr);
403 }
404
405 /***
406 * Getter method for "onclick" tag attribute. (Mapping set in associated
407 * BeanInfo class.)
408 */
409 public String getOnclickExpr() {
410 return (onclickExpr);
411 }
412
413 /***
414 * Getter method for "ondblclick" tag attribute. (Mapping set in
415 * associated BeanInfo class.)
416 */
417 public String getOndblclickExpr() {
418 return (ondblclickExpr);
419 }
420
421 /***
422 * Getter method for "onkeydown" tag attribute. (Mapping set in associated
423 * BeanInfo class.)
424 */
425 public String getOnkeydownExpr() {
426 return (onkeydownExpr);
427 }
428
429 /***
430 * Getter method for "onkeypress" tag attribute. (Mapping set in
431 * associated BeanInfo class.)
432 */
433 public String getOnkeypressExpr() {
434 return (onkeypressExpr);
435 }
436
437 /***
438 * Getter method for "onkeyup" tag attribute. (Mapping set in associated
439 * BeanInfo class.)
440 */
441 public String getOnkeyupExpr() {
442 return (onkeyupExpr);
443 }
444
445 /***
446 * Getter method for "onmousedown" tag attribute. (Mapping set in
447 * associated BeanInfo class.)
448 */
449 public String getOnmousedownExpr() {
450 return (onmousedownExpr);
451 }
452
453 /***
454 * Getter method for "onmousemove" tag attribute. (Mapping set in
455 * associated BeanInfo class.)
456 */
457 public String getOnmousemoveExpr() {
458 return (onmousemoveExpr);
459 }
460
461 /***
462 * Getter method for "onmouseout" tag attribute. (Mapping set in
463 * associated BeanInfo class.)
464 */
465 public String getOnmouseoutExpr() {
466 return (onmouseoutExpr);
467 }
468
469 /***
470 * Getter method for "onmouseover" tag attribute. (Mapping set in
471 * associated BeanInfo class.)
472 */
473 public String getOnmouseoverExpr() {
474 return (onmouseoverExpr);
475 }
476
477 /***
478 * Getter method for "onmouseup" tag attribute. (Mapping set in associated
479 * BeanInfo class.)
480 */
481 public String getOnmouseupExpr() {
482 return (onmouseupExpr);
483 }
484
485 /***
486 * Getter method for "paramId" tag attribute. (Mapping set in associated
487 * BeanInfo class.)
488 */
489 public String getParamIdExpr() {
490 return (paramIdExpr);
491 }
492
493 /***
494 * Getter method for "page" tag attribute. (Mapping set in associated
495 * BeanInfo class.)
496 */
497 public String getPageExpr() {
498 return (pageExpr);
499 }
500
501 /***
502 * Getter method for "pageKey" tag attribute. (Mapping set in associated
503 * BeanInfo class.)
504 */
505 public String getPageKeyExpr() {
506 return (pageKeyExpr);
507 }
508
509 /***
510 * Getter method for "paramName" tag attribute. (Mapping set in associated
511 * BeanInfo class.)
512 */
513 public String getParamNameExpr() {
514 return (paramNameExpr);
515 }
516
517 /***
518 * Getter method for "paramProperty" tag attribute. (Mapping set in
519 * associated BeanInfo class.)
520 */
521 public String getParamPropertyExpr() {
522 return (paramPropertyExpr);
523 }
524
525 /***
526 * Getter method for "paramScope" tag attribute. (Mapping set in
527 * associated BeanInfo class.)
528 */
529 public String getParamScopeExpr() {
530 return (paramScopeExpr);
531 }
532
533 /***
534 * Getter method for "property" tag attribute. (Mapping set in associated
535 * BeanInfo class.)
536 */
537 public String getPropertyExpr() {
538 return (propertyExpr);
539 }
540
541 /***
542 * Getter method for "scope" tag attribute. (Mapping set in associated
543 * BeanInfo class.)
544 */
545 public String getScopeExpr() {
546 return (scopeExpr);
547 }
548
549 /***
550 * Getter method for "src" tag attribute. (Mapping set in associated
551 * BeanInfo class.)
552 */
553 public String getSrcExpr() {
554 return (srcExpr);
555 }
556
557 /***
558 * Getter method for "srcKey" tag attribute. (Mapping set in associated
559 * BeanInfo class.)
560 */
561 public String getSrcKeyExpr() {
562 return (srcKeyExpr);
563 }
564
565 /***
566 * Getter method for "style" tag attribute. (Mapping set in associated
567 * BeanInfo class.)
568 */
569 public String getStyleExpr() {
570 return (styleExpr);
571 }
572
573 /***
574 * Getter method for "styleClass" tag attribute. (Mapping set in
575 * associated BeanInfo class.)
576 */
577 public String getStyleClassExpr() {
578 return (styleClassExpr);
579 }
580
581 /***
582 * Getter method for "styleId" tag attribute. (Mapping set in associated
583 * BeanInfo class.)
584 */
585 public String getStyleIdExpr() {
586 return (styleIdExpr);
587 }
588
589 /***
590 * Getter method for "title" tag attribute. (Mapping set in associated
591 * BeanInfo class.)
592 */
593 public String getTitleExpr() {
594 return (titleExpr);
595 }
596
597 /***
598 * Getter method for "titleKey" tag attribute. (Mapping set in associated
599 * BeanInfo class.)
600 */
601 public String getTitleKeyExpr() {
602 return (titleKeyExpr);
603 }
604
605 /***
606 * Getter method for "useLocalEncoding" tag attribute. (Mapping set in
607 * associated BeanInfo class.)
608 */
609 public String getUseLocalEncodingExpr() {
610 return (useLocalEncodingExpr);
611 }
612
613 /***
614 * Getter method for "usemap" tag attribute. (Mapping set in associated
615 * BeanInfo class.)
616 */
617 public String getUsemapExpr() {
618 return (usemapExpr);
619 }
620
621 /***
622 * Getter method for "vspace" tag attribute. (Mapping set in associated
623 * BeanInfo class.)
624 */
625 public String getVspaceExpr() {
626 return (vspaceExpr);
627 }
628
629 /***
630 * Getter method for "width" tag attribute. (Mapping set in associated
631 * BeanInfo class.)
632 */
633 public String getWidthExpr() {
634 return (widthExpr);
635 }
636
637 /***
638 * Setter method for "action" tag attribute. (Mapping set in associated
639 * BeanInfo class.)
640 */
641 public void setActionExpr(String actionExpr) {
642 this.actionExpr = actionExpr;
643 }
644
645 /***
646 * Setter method for "module" tag attribute. (Mapping set in associated
647 * BeanInfo class.)
648 */
649 public void setModuleExpr(String moduleExpr) {
650 this.moduleExpr = moduleExpr;
651 }
652
653 /***
654 * Setter method for "align" tag attribute. (Mapping set in associated
655 * BeanInfo class.)
656 */
657 public void setAlignExpr(String alignExpr) {
658 this.alignExpr = alignExpr;
659 }
660
661 /***
662 * Setter method for "alt" tag attribute. (Mapping set in associated
663 * BeanInfo class.)
664 */
665 public void setAltExpr(String altExpr) {
666 this.altExpr = altExpr;
667 }
668
669 /***
670 * Setter method for "altKey" tag attribute. (Mapping set in associated
671 * BeanInfo class.)
672 */
673 public void setAltKeyExpr(String altKeyExpr) {
674 this.altKeyExpr = altKeyExpr;
675 }
676
677 /***
678 * Setter method for "border" tag attribute. (Mapping set in associated
679 * BeanInfo class.)
680 */
681 public void setBorderExpr(String borderExpr) {
682 this.borderExpr = borderExpr;
683 }
684
685 /***
686 * Setter method for "bundle" tag attribute. (Mapping set in associated
687 * BeanInfo class.)
688 */
689 public void setBundleExpr(String bundleExpr) {
690 this.bundleExpr = bundleExpr;
691 }
692
693 /***
694 * Setter method for "height" tag attribute. (Mapping set in associated
695 * BeanInfo class.)
696 */
697 public void setHeightExpr(String heightExpr) {
698 this.heightExpr = heightExpr;
699 }
700
701 /***
702 * Setter method for "hspace" tag attribute. (Mapping set in associated
703 * BeanInfo class.)
704 */
705 public void setHspaceExpr(String hspaceExpr) {
706 this.hspaceExpr = hspaceExpr;
707 }
708
709 /***
710 * Setter method for "imageName" tag attribute. (Mapping set in associated
711 * BeanInfo class.)
712 */
713 public void setImageNameExpr(String imageNameExpr) {
714 this.imageNameExpr = imageNameExpr;
715 }
716
717 /***
718 * Setter method for "ismap" tag attribute. (Mapping set in associated
719 * BeanInfo class.)
720 */
721 public void setIsmapExpr(String ismapExpr) {
722 this.ismapExpr = ismapExpr;
723 }
724
725 /***
726 * Setter method for "locale" tag attribute. (Mapping set in associated
727 * BeanInfo class.)
728 */
729 public void setLocaleExpr(String localeExpr) {
730 this.localeExpr = localeExpr;
731 }
732
733 /***
734 * Setter method for "name" tag attribute. (Mapping set in associated
735 * BeanInfo class.)
736 */
737 public void setNameExpr(String nameExpr) {
738 this.nameExpr = nameExpr;
739 }
740
741 /***
742 * Setter method for "onclick" tag attribute. (Mapping set in associated
743 * BeanInfo class.)
744 */
745 public void setOnclickExpr(String onclickExpr) {
746 this.onclickExpr = onclickExpr;
747 }
748
749 /***
750 * Setter method for "ondblclick" tag attribute. (Mapping set in
751 * associated BeanInfo class.)
752 */
753 public void setOndblclickExpr(String ondblclickExpr) {
754 this.ondblclickExpr = ondblclickExpr;
755 }
756
757 /***
758 * Setter method for "onkeydown" tag attribute. (Mapping set in associated
759 * BeanInfo class.)
760 */
761 public void setOnkeydownExpr(String onkeydownExpr) {
762 this.onkeydownExpr = onkeydownExpr;
763 }
764
765 /***
766 * Setter method for "onkeypress" tag attribute. (Mapping set in
767 * associated BeanInfo class.)
768 */
769 public void setOnkeypressExpr(String onkeypressExpr) {
770 this.onkeypressExpr = onkeypressExpr;
771 }
772
773 /***
774 * Setter method for "onkeyup" tag attribute. (Mapping set in associated
775 * BeanInfo class.)
776 */
777 public void setOnkeyupExpr(String onkeyupExpr) {
778 this.onkeyupExpr = onkeyupExpr;
779 }
780
781 /***
782 * Setter method for "onmousedown" tag attribute. (Mapping set in
783 * associated BeanInfo class.)
784 */
785 public void setOnmousedownExpr(String onmousedownExpr) {
786 this.onmousedownExpr = onmousedownExpr;
787 }
788
789 /***
790 * Setter method for "onmousemove" tag attribute. (Mapping set in
791 * associated BeanInfo class.)
792 */
793 public void setOnmousemoveExpr(String onmousemoveExpr) {
794 this.onmousemoveExpr = onmousemoveExpr;
795 }
796
797 /***
798 * Setter method for "onmouseout" tag attribute. (Mapping set in
799 * associated BeanInfo class.)
800 */
801 public void setOnmouseoutExpr(String onmouseoutExpr) {
802 this.onmouseoutExpr = onmouseoutExpr;
803 }
804
805 /***
806 * Setter method for "onmouseover" tag attribute. (Mapping set in
807 * associated BeanInfo class.)
808 */
809 public void setOnmouseoverExpr(String onmouseoverExpr) {
810 this.onmouseoverExpr = onmouseoverExpr;
811 }
812
813 /***
814 * Setter method for "onmouseup" tag attribute. (Mapping set in associated
815 * BeanInfo class.)
816 */
817 public void setOnmouseupExpr(String onmouseupExpr) {
818 this.onmouseupExpr = onmouseupExpr;
819 }
820
821 /***
822 * Setter method for "paramId" tag attribute. (Mapping set in associated
823 * BeanInfo class.)
824 */
825 public void setParamIdExpr(String paramIdExpr) {
826 this.paramIdExpr = paramIdExpr;
827 }
828
829 /***
830 * Setter method for "page" tag attribute. (Mapping set in associated
831 * BeanInfo class.)
832 */
833 public void setPageExpr(String pageExpr) {
834 this.pageExpr = pageExpr;
835 }
836
837 /***
838 * Setter method for "pageKey" tag attribute. (Mapping set in associated
839 * BeanInfo class.)
840 */
841 public void setPageKeyExpr(String pageKeyExpr) {
842 this.pageKeyExpr = pageKeyExpr;
843 }
844
845 /***
846 * Setter method for "paramName" tag attribute. (Mapping set in associated
847 * BeanInfo class.)
848 */
849 public void setParamNameExpr(String paramNameExpr) {
850 this.paramNameExpr = paramNameExpr;
851 }
852
853 /***
854 * Setter method for "paramProperty" tag attribute. (Mapping set in
855 * associated BeanInfo class.)
856 */
857 public void setParamPropertyExpr(String paramPropertyExpr) {
858 this.paramPropertyExpr = paramPropertyExpr;
859 }
860
861 /***
862 * Setter method for "paramScope" tag attribute. (Mapping set in
863 * associated BeanInfo class.)
864 */
865 public void setParamScopeExpr(String paramScopeExpr) {
866 this.paramScopeExpr = paramScopeExpr;
867 }
868
869 /***
870 * Setter method for "property" tag attribute. (Mapping set in associated
871 * BeanInfo class.)
872 */
873 public void setPropertyExpr(String propertyExpr) {
874 this.propertyExpr = propertyExpr;
875 }
876
877 /***
878 * Setter method for "scope" tag attribute. (Mapping set in associated
879 * BeanInfo class.)
880 */
881 public void setScopeExpr(String scopeExpr) {
882 this.scopeExpr = scopeExpr;
883 }
884
885 /***
886 * Setter method for "src" tag attribute. (Mapping set in associated
887 * BeanInfo class.)
888 */
889 public void setSrcExpr(String srcExpr) {
890 this.srcExpr = srcExpr;
891 }
892
893 /***
894 * Setter method for "srcKey" tag attribute. (Mapping set in associated
895 * BeanInfo class.)
896 */
897 public void setSrcKeyExpr(String srcKeyExpr) {
898 this.srcKeyExpr = srcKeyExpr;
899 }
900
901 /***
902 * Setter method for "style" tag attribute. (Mapping set in associated
903 * BeanInfo class.)
904 */
905 public void setStyleExpr(String styleExpr) {
906 this.styleExpr = styleExpr;
907 }
908
909 /***
910 * Setter method for "styleClass" tag attribute. (Mapping set in
911 * associated BeanInfo class.)
912 */
913 public void setStyleClassExpr(String styleClassExpr) {
914 this.styleClassExpr = styleClassExpr;
915 }
916
917 /***
918 * Setter method for "styleId" tag attribute. (Mapping set in associated
919 * BeanInfo class.)
920 */
921 public void setStyleIdExpr(String styleIdExpr) {
922 this.styleIdExpr = styleIdExpr;
923 }
924
925 /***
926 * Setter method for "title" tag attribute. (Mapping set in associated
927 * BeanInfo class.)
928 */
929 public void setTitleExpr(String titleExpr) {
930 this.titleExpr = titleExpr;
931 }
932
933 /***
934 * Setter method for "titleKey" tag attribute. (Mapping set in associated
935 * BeanInfo class.)
936 */
937 public void setTitleKeyExpr(String titleKeyExpr) {
938 this.titleKeyExpr = titleKeyExpr;
939 }
940
941 /***
942 * Setter method for "useLocalEncoding" tag attribute. (Mapping set in
943 * associated BeanInfo class.)
944 */
945 public void setUseLocalEncodingExpr(String useLocalEncodingExpr) {
946 this.useLocalEncodingExpr = useLocalEncodingExpr;
947 }
948
949 /***
950 * Setter method for "usemap" tag attribute. (Mapping set in associated
951 * BeanInfo class.)
952 */
953 public void setUsemapExpr(String usemapExpr) {
954 this.usemapExpr = usemapExpr;
955 }
956
957 /***
958 * Setter method for "vspace" tag attribute. (Mapping set in associated
959 * BeanInfo class.)
960 */
961 public void setVspaceExpr(String vspaceExpr) {
962 this.vspaceExpr = vspaceExpr;
963 }
964
965 /***
966 * Setter method for "width" tag attribute. (Mapping set in associated
967 * BeanInfo class.)
968 */
969 public void setWidthExpr(String widthExpr) {
970 this.widthExpr = widthExpr;
971 }
972
973 /***
974 * Resets attribute values for tag reuse.
975 */
976 public void release() {
977 super.release();
978 setActionExpr(null);
979 setModuleExpr(null);
980 setAlignExpr(null);
981 setAltExpr(null);
982 setAltKeyExpr(null);
983 setBorderExpr(null);
984 setBundleExpr(null);
985 setHeightExpr(null);
986 setHspaceExpr(null);
987 setImageNameExpr(null);
988 setIsmapExpr(null);
989 setLocaleExpr(null);
990 setNameExpr(null);
991 setOnclickExpr(null);
992 setOndblclickExpr(null);
993 setOnkeydownExpr(null);
994 setOnkeypressExpr(null);
995 setOnkeyupExpr(null);
996 setOnmousedownExpr(null);
997 setOnmousemoveExpr(null);
998 setOnmouseoutExpr(null);
999 setOnmouseoverExpr(null);
1000 setOnmouseupExpr(null);
1001 setPageExpr(null);
1002 setPageKeyExpr(null);
1003 setParamIdExpr(null);
1004 setParamNameExpr(null);
1005 setParamPropertyExpr(null);
1006 setParamScopeExpr(null);
1007 setPropertyExpr(null);
1008 setScopeExpr(null);
1009 setSrcExpr(null);
1010 setSrcKeyExpr(null);
1011 setStyleExpr(null);
1012 setStyleClassExpr(null);
1013 setStyleIdExpr(null);
1014 setTitleExpr(null);
1015 setTitleKeyExpr(null);
1016 setUseLocalEncodingExpr(null);
1017 setUsemapExpr(null);
1018 setVspaceExpr(null);
1019 setWidthExpr(null);
1020 }
1021
1022 /***
1023 * Process the start tag.
1024 *
1025 * @throws JspException if a JSP exception has occurred
1026 */
1027 public int doStartTag() throws JspException {
1028 evaluateExpressions();
1029
1030 return (super.doStartTag());
1031 }
1032
1033 /***
1034 * Processes all attribute values which use the JSTL expression evaluation
1035 * engine to determine their values.
1036 *
1037 * @throws JspException if a JSP exception has occurred
1038 */
1039 private void evaluateExpressions()
1040 throws JspException {
1041 String string = null;
1042 Boolean bool = null;
1043
1044 if ((string =
1045 EvalHelper.evalString("action", getActionExpr(), this,
1046 pageContext)) != null) {
1047 setAction(string);
1048 }
1049
1050 if ((string =
1051 EvalHelper.evalString("module", getModuleExpr(), this,
1052 pageContext)) != null) {
1053 setModule(string);
1054 }
1055
1056 if ((string =
1057 EvalHelper.evalString("align", getAlignExpr(), this, pageContext)) != null) {
1058 setAlign(string);
1059 }
1060
1061 if ((string =
1062 EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) {
1063 setAlt(string);
1064 }
1065
1066 if ((string =
1067 EvalHelper.evalString("altKey", getAltKeyExpr(), this,
1068 pageContext)) != null) {
1069 setAltKey(string);
1070 }
1071
1072 if ((string =
1073 EvalHelper.evalString("border", getBorderExpr(), this,
1074 pageContext)) != null) {
1075 setBorder(string);
1076 }
1077
1078 if ((string =
1079 EvalHelper.evalString("bundle", getBundleExpr(), this,
1080 pageContext)) != null) {
1081 setBundle(string);
1082 }
1083
1084 if ((string =
1085 EvalHelper.evalString("height", getHeightExpr(), this,
1086 pageContext)) != null) {
1087 setHeight(string);
1088 }
1089
1090 if ((string =
1091 EvalHelper.evalString("hspace", getHspaceExpr(), this,
1092 pageContext)) != null) {
1093 setHspace(string);
1094 }
1095
1096 if ((string =
1097 EvalHelper.evalString("imageName", getImageNameExpr(), this,
1098 pageContext)) != null) {
1099 setImageName(string);
1100 }
1101
1102 if ((string =
1103 EvalHelper.evalString("ismap", getIsmapExpr(), this, pageContext)) != null) {
1104 setIsmap(string);
1105 }
1106
1107 if ((string =
1108 EvalHelper.evalString("locale", getLocaleExpr(), this,
1109 pageContext)) != null) {
1110 setLocale(string);
1111 }
1112
1113 if ((string =
1114 EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) {
1115 setName(string);
1116 }
1117
1118 if ((string =
1119 EvalHelper.evalString("onclick", getOnclickExpr(), this,
1120 pageContext)) != null) {
1121 setOnclick(string);
1122 }
1123
1124 if ((string =
1125 EvalHelper.evalString("ondblclick", getOndblclickExpr(), this,
1126 pageContext)) != null) {
1127 setOndblclick(string);
1128 }
1129
1130 if ((string =
1131 EvalHelper.evalString("onkeydown", getOnkeydownExpr(), this,
1132 pageContext)) != null) {
1133 setOnkeydown(string);
1134 }
1135
1136 if ((string =
1137 EvalHelper.evalString("onkeypress", getOnkeypressExpr(), this,
1138 pageContext)) != null) {
1139 setOnkeypress(string);
1140 }
1141
1142 if ((string =
1143 EvalHelper.evalString("onkeyup", getOnkeyupExpr(), this,
1144 pageContext)) != null) {
1145 setOnkeyup(string);
1146 }
1147
1148 if ((string =
1149 EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
1150 this, pageContext)) != null) {
1151 setOnmousedown(string);
1152 }
1153
1154 if ((string =
1155 EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
1156 this, pageContext)) != null) {
1157 setOnmousemove(string);
1158 }
1159
1160 if ((string =
1161 EvalHelper.evalString("onmouseout", getOnmouseoutExpr(), this,
1162 pageContext)) != null) {
1163 setOnmouseout(string);
1164 }
1165
1166 if ((string =
1167 EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
1168 this, pageContext)) != null) {
1169 setOnmouseover(string);
1170 }
1171
1172 if ((string =
1173 EvalHelper.evalString("onmouseup", getOnmouseupExpr(), this,
1174 pageContext)) != null) {
1175 setOnmouseup(string);
1176 }
1177
1178 if ((string =
1179 EvalHelper.evalString("paramId", getParamIdExpr(), this,
1180 pageContext)) != null) {
1181 setParamId(string);
1182 }
1183
1184 if ((string =
1185 EvalHelper.evalString("page", getPageExpr(), this, pageContext)) != null) {
1186 setPage(string);
1187 }
1188
1189 if ((string =
1190 EvalHelper.evalString("pageKey", getPageKeyExpr(), this,
1191 pageContext)) != null) {
1192 setPageKey(string);
1193 }
1194
1195 if ((string =
1196 EvalHelper.evalString("paramName", getParamNameExpr(), this,
1197 pageContext)) != null) {
1198 setParamName(string);
1199 }
1200
1201 if ((string =
1202 EvalHelper.evalString("paramProperty", getParamPropertyExpr(),
1203 this, pageContext)) != null) {
1204 setParamProperty(string);
1205 }
1206
1207 if ((string =
1208 EvalHelper.evalString("paramScope", getParamScopeExpr(), this,
1209 pageContext)) != null) {
1210 setParamScope(string);
1211 }
1212
1213 if ((string =
1214 EvalHelper.evalString("property", getPropertyExpr(), this,
1215 pageContext)) != null) {
1216 setProperty(string);
1217 }
1218
1219 if ((string =
1220 EvalHelper.evalString("scope", getScopeExpr(), this, pageContext)) != null) {
1221 setScope(string);
1222 }
1223
1224 if ((string =
1225 EvalHelper.evalString("src", getSrcExpr(), this, pageContext)) != null) {
1226 setSrc(string);
1227 }
1228
1229 if ((string =
1230 EvalHelper.evalString("srcKey", getSrcKeyExpr(), this,
1231 pageContext)) != null) {
1232 setSrcKey(string);
1233 }
1234
1235 if ((string =
1236 EvalHelper.evalString("style", getStyleExpr(), this, pageContext)) != null) {
1237 setStyle(string);
1238 }
1239
1240 if ((string =
1241 EvalHelper.evalString("styleClass", getStyleClassExpr(), this,
1242 pageContext)) != null) {
1243 setStyleClass(string);
1244 }
1245
1246 if ((string =
1247 EvalHelper.evalString("styleId", getStyleIdExpr(), this,
1248 pageContext)) != null) {
1249 setStyleId(string);
1250 }
1251
1252 if ((string =
1253 EvalHelper.evalString("title", getTitleExpr(), this, pageContext)) != null) {
1254 setTitle(string);
1255 }
1256
1257 if ((string =
1258 EvalHelper.evalString("titleKey", getTitleKeyExpr(), this,
1259 pageContext)) != null) {
1260 setTitleKey(string);
1261 }
1262
1263 if ((bool =
1264 EvalHelper.evalBoolean("useLocalEncoding",
1265 getUseLocalEncodingExpr(), this, pageContext)) != null) {
1266 setUseLocalEncoding(bool.booleanValue());
1267 }
1268
1269 if ((string =
1270 EvalHelper.evalString("usemap", getUsemapExpr(), this,
1271 pageContext)) != null) {
1272 setUsemap(string);
1273 }
1274
1275 if ((string =
1276 EvalHelper.evalString("vspace", getVspaceExpr(), this,
1277 pageContext)) != null) {
1278 setVspace(string);
1279 }
1280
1281 if ((string =
1282 EvalHelper.evalString("width", getWidthExpr(), this, pageContext)) != null) {
1283 setWidth(string);
1284 }
1285 }
1286 }