KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > strutsel > taglib > html > ELLinkTag


1 /*
2  * $Id: ELLinkTag.java 123585 2004-12-29 00:43:33Z martinc $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.strutsel.taglib.html;
20
21 import org.apache.struts.taglib.html.LinkTag;
22 import javax.servlet.jsp.JspException JavaDoc;
23 import org.apache.strutsel.taglib.utils.EvalHelper;
24
25 /**
26  * Generate a URL-encoded hyperlink to the specified URI.
27  *<p>
28  * This class is a subclass of the class
29  * <code>org.apache.struts.taglib.html.LinkTag</code> which provides most of
30  * the described functionality. This subclass allows all attribute values to
31  * be specified as expressions utilizing the JavaServer Pages Standard Library
32  * expression language.
33  *
34  * @version $Rev: 123585 $
35  */

36 public class ELLinkTag extends LinkTag {
37
38     /**
39      * Instance variable mapped to "accessKey" tag attribute.
40      * (Mapping set in associated BeanInfo class.)
41      */

42     private String JavaDoc accessKeyExpr;
43     /**
44      * Instance variable mapped to "action" tag attribute.
45      * (Mapping set in associated BeanInfo class.)
46      */

47     private String JavaDoc actionExpr;
48     /**
49      * Instance variable mapped to "module" tag attribute.
50      * (Mapping set in associated BeanInfo class.)
51      */

52     private String JavaDoc moduleExpr;
53     /**
54      * Instance variable mapped to "anchor" tag attribute.
55      * (Mapping set in associated BeanInfo class.)
56      */

57     private String JavaDoc anchorExpr;
58     /**
59      * Instance variable mapped to "bundle" tag attribute.
60      * (Mapping set in associated BeanInfo class.)
61      */

62     private String JavaDoc bundleExpr;
63     /**
64      * Instance variable mapped to "forward" tag attribute.
65      * (Mapping set in associated BeanInfo class.)
66      */

67     private String JavaDoc forwardExpr;
68     /**
69      * Instance variable mapped to "href" tag attribute.
70      * (Mapping set in associated BeanInfo class.)
71      */

72     private String JavaDoc hrefExpr;
73     /**
74      * Instance variable mapped to "indexed" tag attribute.
75      * (Mapping set in associated BeanInfo class.)
76      */

77     private String JavaDoc indexedExpr;
78     /**
79      * Instance variable mapped to "indexId" tag attribute.
80      * (Mapping set in associated BeanInfo class.)
81      */

82     private String JavaDoc indexIdExpr;
83     /**
84      * Instance variable mapped to "linkName" tag attribute.
85      * (Mapping set in associated BeanInfo class.)
86      */

87     private String JavaDoc linkNameExpr;
88     /**
89      * Instance variable mapped to "name" tag attribute.
90      * (Mapping set in associated BeanInfo class.)
91      */

92     private String JavaDoc nameExpr;
93     /**
94      * Instance variable mapped to "onblur" tag attribute.
95      * (Mapping set in associated BeanInfo class.)
96      */

97     private String JavaDoc onblurExpr;
98     /**
99      * Instance variable mapped to "onclick" tag attribute.
100      * (Mapping set in associated BeanInfo class.)
101      */

102     private String JavaDoc onclickExpr;
103     /**
104      * Instance variable mapped to "ondblclick" tag attribute.
105      * (Mapping set in associated BeanInfo class.)
106      */

107     private String JavaDoc ondblclickExpr;
108     /**
109      * Instance variable mapped to "onfocus" tag attribute.
110      * (Mapping set in associated BeanInfo class.)
111      */

112     private String JavaDoc onfocusExpr;
113     /**
114      * Instance variable mapped to "onkeydown" tag attribute.
115      * (Mapping set in associated BeanInfo class.)
116      */

117     private String JavaDoc onkeydownExpr;
118     /**
119      * Instance variable mapped to "onkeypress" tag attribute.
120      * (Mapping set in associated BeanInfo class.)
121      */

122     private String JavaDoc onkeypressExpr;
123     /**
124      * Instance variable mapped to "onkeyup" tag attribute.
125      * (Mapping set in associated BeanInfo class.)
126      */

127     private String JavaDoc onkeyupExpr;
128     /**
129      * Instance variable mapped to "onmousedown" tag attribute.
130      * (Mapping set in associated BeanInfo class.)
131      */

132     private String JavaDoc onmousedownExpr;
133     /**
134      * Instance variable mapped to "onmousemove" tag attribute.
135      * (Mapping set in associated BeanInfo class.)
136      */

137     private String JavaDoc onmousemoveExpr;
138     /**
139      * Instance variable mapped to "onmouseout" tag attribute.
140      * (Mapping set in associated BeanInfo class.)
141      */

142     private String JavaDoc onmouseoutExpr;
143     /**
144      * Instance variable mapped to "onmouseover" tag attribute.
145      * (Mapping set in associated BeanInfo class.)
146      */

147     private String JavaDoc onmouseoverExpr;
148     /**
149      * Instance variable mapped to "onmouseup" tag attribute.
150      * (Mapping set in associated BeanInfo class.)
151      */

152     private String JavaDoc onmouseupExpr;
153     /**
154      * Instance variable mapped to "page" tag attribute.
155      * (Mapping set in associated BeanInfo class.)
156      */

157     private String JavaDoc pageExpr;
158     /**
159      * Instance variable mapped to "paramId" tag attribute.
160      * (Mapping set in associated BeanInfo class.)
161      */

162     private String JavaDoc paramIdExpr;
163     /**
164      * Instance variable mapped to "paramName" tag attribute.
165      * (Mapping set in associated BeanInfo class.)
166      */

167     private String JavaDoc paramNameExpr;
168     /**
169      * Instance variable mapped to "paramProperty" tag attribute.
170      * (Mapping set in associated BeanInfo class.)
171      */

172     private String JavaDoc paramPropertyExpr;
173     /**
174      * Instance variable mapped to "paramScope" tag attribute.
175      * (Mapping set in associated BeanInfo class.)
176      */

177     private String JavaDoc paramScopeExpr;
178     /**
179      * Instance variable mapped to "property" tag attribute.
180      * (Mapping set in associated BeanInfo class.)
181      */

182     private String JavaDoc propertyExpr;
183     /**
184      * Instance variable mapped to "scope" tag attribute.
185      * (Mapping set in associated BeanInfo class.)
186      */

187     private String JavaDoc scopeExpr;
188     /**
189      * Instance variable mapped to "style" tag attribute.
190      * (Mapping set in associated BeanInfo class.)
191      */

192     private String JavaDoc styleExpr;
193     /**
194      * Instance variable mapped to "styleClass" tag attribute.
195      * (Mapping set in associated BeanInfo class.)
196      */

197     private String JavaDoc styleClassExpr;
198     /**
199      * Instance variable mapped to "styleId" tag attribute.
200      * (Mapping set in associated BeanInfo class.)
201      */

202     private String JavaDoc styleIdExpr;
203     /**
204      * Instance variable mapped to "tabindex" tag attribute.
205      * (Mapping set in associated BeanInfo class.)
206      */

207     private String JavaDoc tabindexExpr;
208     /**
209      * Instance variable mapped to "target" tag attribute.
210      * (Mapping set in associated BeanInfo class.)
211      */

212     private String JavaDoc targetExpr;
213     /**
214      * Instance variable mapped to "title" tag attribute.
215      * (Mapping set in associated BeanInfo class.)
216      */

217     private String JavaDoc titleExpr;
218     /**
219      * Instance variable mapped to "titleKey" tag attribute.
220      * (Mapping set in associated BeanInfo class.)
221      */

222     private String JavaDoc titleKeyExpr;
223     /**
224      * Instance variable mapped to "transaction" tag attribute.
225      * (Mapping set in associated BeanInfo class.)
226      */

227     private String JavaDoc transactionExpr;
228     /**
229      * Instance variable mapped to "useLocalEncoding" tag attribute.
230      * (Mapping set in associated BeanInfo class.)
231      */

232     private String JavaDoc useLocalEncodingExpr;
233
234     /**
235      * Getter method for "accessKey" tag attribute.
236      * (Mapping set in associated BeanInfo class.)
237      */

238     public String JavaDoc getAccesskeyExpr() { return (accessKeyExpr); }
239     /**
240      * Getter method for "action" tag attribute.
241      * (Mapping set in associated BeanInfo class.)
242      */

243     public String JavaDoc getActionExpr() { return (actionExpr); }
244     /**
245      * Getter method for "module" tag attribute.
246      * (Mapping set in associated BeanInfo class.)
247      */

248     public String JavaDoc getModuleExpr() { return (moduleExpr); }
249     /**
250      * Getter method for "anchor" tag attribute.
251      * (Mapping set in associated BeanInfo class.)
252      */

253     public String JavaDoc getAnchorExpr() { return (anchorExpr); }
254     /**
255      * Getter method for "bundle" tag attribute.
256      * (Mapping set in associated BeanInfo class.)
257      */

258     public String JavaDoc getBundleExpr() { return (bundleExpr); }
259     /**
260      * Getter method for "forward" tag attribute.
261      * (Mapping set in associated BeanInfo class.)
262      */

263     public String JavaDoc getForwardExpr() { return (forwardExpr); }
264     /**
265      * Getter method for "href" tag attribute.
266      * (Mapping set in associated BeanInfo class.)
267      */

268     public String JavaDoc getHrefExpr() { return (hrefExpr); }
269     /**
270      * Getter method for "indexed" tag attribute.
271      * (Mapping set in associated BeanInfo class.)
272      */

273     public String JavaDoc getIndexedExpr() { return (indexedExpr); }
274     /**
275      * Getter method for "indexId" tag attribute.
276      * (Mapping set in associated BeanInfo class.)
277      */

278     public String JavaDoc getIndexIdExpr() { return (indexIdExpr); }
279     /**
280      * Getter method for "linkName" tag attribute.
281      * (Mapping set in associated BeanInfo class.)
282      */

283     public String JavaDoc getLinkNameExpr() { return (linkNameExpr); }
284     /**
285      * Getter method for "name" tag attribute.
286      * (Mapping set in associated BeanInfo class.)
287      */

288     public String JavaDoc getNameExpr() { return (nameExpr); }
289     /**
290      * Getter method for "onblur" tag attribute.
291      * (Mapping set in associated BeanInfo class.)
292      */

293     public String JavaDoc getOnblurExpr() { return (onblurExpr); }
294     /**
295      * Getter method for "onclick" tag attribute.
296      * (Mapping set in associated BeanInfo class.)
297      */

298     public String JavaDoc getOnclickExpr() { return (onclickExpr); }
299     /**
300      * Getter method for "ondblclick" tag attribute.
301      * (Mapping set in associated BeanInfo class.)
302      */

303     public String JavaDoc getOndblclickExpr() { return (ondblclickExpr); }
304     /**
305      * Getter method for "onfocus" tag attribute.
306      * (Mapping set in associated BeanInfo class.)
307      */

308     public String JavaDoc getOnfocusExpr() { return (onfocusExpr); }
309     /**
310      * Getter method for "onkeydown" tag attribute.
311      * (Mapping set in associated BeanInfo class.)
312      */

313     public String JavaDoc getOnkeydownExpr() { return (onkeydownExpr); }
314     /**
315      * Getter method for "onkeypress" tag attribute.
316      * (Mapping set in associated BeanInfo class.)
317      */

318     public String JavaDoc getOnkeypressExpr() { return (onkeypressExpr); }
319     /**
320      * Getter method for "onkeyup" tag attribute.
321      * (Mapping set in associated BeanInfo class.)
322      */

323     public String JavaDoc getOnkeyupExpr() { return (onkeyupExpr); }
324     /**
325      * Getter method for "onmousedown" tag attribute.
326      * (Mapping set in associated BeanInfo class.)
327      */

328     public String JavaDoc getOnmousedownExpr() { return (onmousedownExpr); }
329     /**
330      * Getter method for "onmousemove" tag attribute.
331      * (Mapping set in associated BeanInfo class.)
332      */

333     public String JavaDoc getOnmousemoveExpr() { return (onmousemoveExpr); }
334     /**
335      * Getter method for "onmouseout" tag attribute.
336      * (Mapping set in associated BeanInfo class.)
337      */

338     public String JavaDoc getOnmouseoutExpr() { return (onmouseoutExpr); }
339     /**
340      * Getter method for "onmouseover" tag attribute.
341      * (Mapping set in associated BeanInfo class.)
342      */

343     public String JavaDoc getOnmouseoverExpr() { return (onmouseoverExpr); }
344     /**
345      * Getter method for "onmouseup" tag attribute.
346      * (Mapping set in associated BeanInfo class.)
347      */

348     public String JavaDoc getOnmouseupExpr() { return (onmouseupExpr); }
349     /**
350      * Getter method for "page" tag attribute.
351      * (Mapping set in associated BeanInfo class.)
352      */

353     public String JavaDoc getPageExpr() { return (pageExpr); }
354     /**
355      * Getter method for "paramId" tag attribute.
356      * (Mapping set in associated BeanInfo class.)
357      */

358     public String JavaDoc getParamIdExpr() { return (paramIdExpr); }
359     /**
360      * Getter method for "paramName" tag attribute.
361      * (Mapping set in associated BeanInfo class.)
362      */

363     public String JavaDoc getParamNameExpr() { return (paramNameExpr); }
364     /**
365      * Getter method for "paramProperty" tag attribute.
366      * (Mapping set in associated BeanInfo class.)
367      */

368     public String JavaDoc getParamPropertyExpr() { return (paramPropertyExpr); }
369     /**
370      * Getter method for "paramScope" tag attribute.
371      * (Mapping set in associated BeanInfo class.)
372      */

373     public String JavaDoc getParamScopeExpr() { return (paramScopeExpr); }
374     /**
375      * Getter method for "property" tag attribute.
376      * (Mapping set in associated BeanInfo class.)
377      */

378     public String JavaDoc getPropertyExpr() { return (propertyExpr); }
379     /**
380      * Getter method for "scope" tag attribute.
381      * (Mapping set in associated BeanInfo class.)
382      */

383     public String JavaDoc getScopeExpr() { return (scopeExpr); }
384     /**
385      * Getter method for "style" tag attribute.
386      * (Mapping set in associated BeanInfo class.)
387      */

388     public String JavaDoc getStyleExpr() { return (styleExpr); }
389     /**
390      * Getter method for "styleClass" tag attribute.
391      * (Mapping set in associated BeanInfo class.)
392      */

393     public String JavaDoc getStyleClassExpr() { return (styleClassExpr); }
394     /**
395      * Getter method for "styleId" tag attribute.
396      * (Mapping set in associated BeanInfo class.)
397      */

398     public String JavaDoc getStyleIdExpr() { return (styleIdExpr); }
399     /**
400      * Getter method for "tabindex" tag attribute.
401      * (Mapping set in associated BeanInfo class.)
402      */

403     public String JavaDoc getTabindexExpr() { return (tabindexExpr); }
404     /**
405      * Getter method for "target" tag attribute.
406      * (Mapping set in associated BeanInfo class.)
407      */

408     public String JavaDoc getTargetExpr() { return (targetExpr); }
409     /**
410      * Getter method for "title" tag attribute.
411      * (Mapping set in associated BeanInfo class.)
412      */

413     public String JavaDoc getTitleExpr() { return (titleExpr); }
414     /**
415      * Getter method for "titleKey" tag attribute.
416      * (Mapping set in associated BeanInfo class.)
417      */

418     public String JavaDoc getTitleKeyExpr() { return (titleKeyExpr); }
419     /**
420      * Getter method for "transaction" tag attribute.
421      * (Mapping set in associated BeanInfo class.)
422      */

423     public String JavaDoc getTransactionExpr() { return (transactionExpr); }
424     /**
425      * Getter method for "useLocalEncoding" tag attribute.
426      * (Mapping set in associated BeanInfo class.)
427      */

428     public String JavaDoc getUseLocalEncodingExpr() { return (useLocalEncodingExpr); }
429
430     /**
431      * Setter method for "accessKey" tag attribute.
432      * (Mapping set in associated BeanInfo class.)
433      */

434     public void setAccesskeyExpr(String JavaDoc accessKeyExpr) { this.accessKeyExpr = accessKeyExpr; }
435     /**
436      * Setter method for "action" tag attribute.
437      * (Mapping set in associated BeanInfo class.)
438      */

439     public void setActionExpr(String JavaDoc actionExpr) { this.actionExpr = actionExpr; }
440     /**
441      * Setter method for "module" tag attribute.
442      * (Mapping set in associated BeanInfo class.)
443      */

444     public void setModuleExpr(String JavaDoc moduleExpr) { this.moduleExpr = moduleExpr; }
445     /**
446      * Setter method for "anchor" tag attribute.
447      * (Mapping set in associated BeanInfo class.)
448      */

449     public void setAnchorExpr(String JavaDoc anchorExpr) { this.anchorExpr = anchorExpr; }
450     /**
451      * Setter method for "bundle" tag attribute.
452      * (Mapping set in associated BeanInfo class.)
453      */

454     public void setBundleExpr(String JavaDoc bundleExpr) { this.bundleExpr = bundleExpr; }
455     /**
456      * Setter method for "forward" tag attribute.
457      * (Mapping set in associated BeanInfo class.)
458      */

459     public void setForwardExpr(String JavaDoc forwardExpr) { this.forwardExpr = forwardExpr; }
460     /**
461      * Setter method for "href" tag attribute.
462      * (Mapping set in associated BeanInfo class.)
463      */

464     public void setHrefExpr(String JavaDoc hrefExpr) { this.hrefExpr = hrefExpr; }
465     /**
466      * Setter method for "indexed" tag attribute.
467      * (Mapping set in associated BeanInfo class.)
468      */

469     public void setIndexedExpr(String JavaDoc indexedExpr) { this.indexedExpr = indexedExpr; }
470     /**
471      * Setter method for "indexId" tag attribute.
472      * (Mapping set in associated BeanInfo class.)
473      */

474     public void setIndexIdExpr(String JavaDoc indexIdExpr) { this.indexIdExpr = indexIdExpr; }
475     /**
476      * Setter method for "linkName" tag attribute.
477      * (Mapping set in associated BeanInfo class.)
478      */

479     public void setLinkNameExpr(String JavaDoc linkNameExpr) { this.linkNameExpr = linkNameExpr; }
480     /**
481      * Setter method for "name" tag attribute.
482      * (Mapping set in associated BeanInfo class.)
483      */

484     public void setNameExpr(String JavaDoc nameExpr) { this.nameExpr = nameExpr; }
485     /**
486      * Setter method for "onblur" tag attribute.
487      * (Mapping set in associated BeanInfo class.)
488      */

489     public void setOnblurExpr(String JavaDoc onblurExpr) { this.onblurExpr = onblurExpr; }
490     /**
491      * Setter method for "onclick" tag attribute.
492      * (Mapping set in associated BeanInfo class.)
493      */

494     public void setOnclickExpr(String JavaDoc onclickExpr) { this.onclickExpr = onclickExpr; }
495     /**
496      * Setter method for "ondblclick" tag attribute.
497      * (Mapping set in associated BeanInfo class.)
498      */

499     public void setOndblclickExpr(String JavaDoc ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; }
500     /**
501      * Setter method for "onfocus" tag attribute.
502      * (Mapping set in associated BeanInfo class.)
503      */

504     public void setOnfocusExpr(String JavaDoc onfocusExpr) { this.onfocusExpr = onfocusExpr; }
505     /**
506      * Setter method for "onkeydown" tag attribute.
507      * (Mapping set in associated BeanInfo class.)
508      */

509     public void setOnkeydownExpr(String JavaDoc onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; }
510     /**
511      * Setter method for "onkeypress" tag attribute.
512      * (Mapping set in associated BeanInfo class.)
513      */

514     public void setOnkeypressExpr(String JavaDoc onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; }
515     /**
516      * Setter method for "onkeyup" tag attribute.
517      * (Mapping set in associated BeanInfo class.)
518      */

519     public void setOnkeyupExpr(String JavaDoc onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; }
520     /**
521      * Setter method for "onmousedown" tag attribute.
522      * (Mapping set in associated BeanInfo class.)
523      */

524     public void setOnmousedownExpr(String JavaDoc onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; }
525     /**
526      * Setter method for "onmousemove" tag attribute.
527      * (Mapping set in associated BeanInfo class.)
528      */

529     public void setOnmousemoveExpr(String JavaDoc onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; }
530     /**
531      * Setter method for "onmouseout" tag attribute.
532      * (Mapping set in associated BeanInfo class.)
533      */

534     public void setOnmouseoutExpr(String JavaDoc onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; }
535     /**
536      * Setter method for "onmouseover" tag attribute.
537      * (Mapping set in associated BeanInfo class.)
538      */

539     public void setOnmouseoverExpr(String JavaDoc onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; }
540     /**
541      * Setter method for "onmouseup" tag attribute.
542      * (Mapping set in associated BeanInfo class.)
543      */

544     public void setOnmouseupExpr(String JavaDoc onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; }
545     /**
546      * Setter method for "page" tag attribute.
547      * (Mapping set in associated BeanInfo class.)
548      */

549     public void setPageExpr(String JavaDoc pageExpr) { this.pageExpr = pageExpr; }
550     /**
551      * Setter method for "paramId" tag attribute.
552      * (Mapping set in associated BeanInfo class.)
553      */

554     public void setParamIdExpr(String JavaDoc paramIdExpr) { this.paramIdExpr = paramIdExpr; }
555     /**
556      * Setter method for "paramName" tag attribute.
557      * (Mapping set in associated BeanInfo class.)
558      */

559     public void setParamNameExpr(String JavaDoc paramNameExpr) { this.paramNameExpr = paramNameExpr; }
560     /**
561      * Setter method for "paramProperty" tag attribute.
562      * (Mapping set in associated BeanInfo class.)
563      */

564     public void setParamPropertyExpr(String JavaDoc paramPropertyExpr) { this.paramPropertyExpr = paramPropertyExpr; }
565     /**
566      * Setter method for "paramScope" tag attribute.
567      * (Mapping set in associated BeanInfo class.)
568      */

569     public void setParamScopeExpr(String JavaDoc paramScopeExpr) { this.paramScopeExpr = paramScopeExpr; }
570     /**
571      * Setter method for "property" tag attribute.
572      * (Mapping set in associated BeanInfo class.)
573      */

574     public void setPropertyExpr(String JavaDoc propertyExpr) { this.propertyExpr = propertyExpr; }
575     /**
576      * Setter method for "scope" tag attribute.
577      * (Mapping set in associated BeanInfo class.)
578      */

579     public void setScopeExpr(String JavaDoc scopeExpr) { this.scopeExpr = scopeExpr; }
580     /**
581      * Setter method for "style" tag attribute.
582      * (Mapping set in associated BeanInfo class.)
583      */

584     public void setStyleExpr(String JavaDoc styleExpr) { this.styleExpr = styleExpr; }
585     /**
586      * Setter method for "styleClass" tag attribute.
587      * (Mapping set in associated BeanInfo class.)
588      */

589     public void setStyleClassExpr(String JavaDoc styleClassExpr) { this.styleClassExpr = styleClassExpr; }
590     /**
591      * Setter method for "styleId" tag attribute.
592      * (Mapping set in associated BeanInfo class.)
593      */

594     public void setStyleIdExpr(String JavaDoc styleIdExpr) { this.styleIdExpr = styleIdExpr; }
595     /**
596      * Setter method for "tabindex" tag attribute.
597      * (Mapping set in associated BeanInfo class.)
598      */

599     public void setTabindexExpr(String JavaDoc tabindexExpr) { this.tabindexExpr = tabindexExpr; }
600     /**
601      * Setter method for "target" tag attribute.
602      * (Mapping set in associated BeanInfo class.)
603      */

604     public void setTargetExpr(String JavaDoc targetExpr) { this.targetExpr = targetExpr; }
605     /**
606      * Setter method for "title" tag attribute.
607      * (Mapping set in associated BeanInfo class.)
608      */

609     public void setTitleExpr(String JavaDoc titleExpr) { this.titleExpr = titleExpr; }
610     /**
611      * Setter method for "titleKey" tag attribute.
612      * (Mapping set in associated BeanInfo class.)
613      */

614     public void setTitleKeyExpr(String JavaDoc titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; }
615     /**
616      * Setter method for "transaction" tag attribute.
617      * (Mapping set in associated BeanInfo class.)
618      */

619     public void setTransactionExpr(String JavaDoc transactionExpr) { this.transactionExpr = transactionExpr; }
620     /**
621      * Setter method for "useLocalEncoding" tag attribute.
622      * (Mapping set in associated BeanInfo class.)
623      */

624     public void setUseLocalEncodingExpr(String JavaDoc useLocalEncodingExpr) { this.useLocalEncodingExpr = useLocalEncodingExpr; }
625
626     /**
627      * Resets attribute values for tag reuse.
628      */

629     public void release()
630     {
631         super.release();
632         setAccesskeyExpr(null);
633         setActionExpr(null);
634         setModuleExpr(null);
635         setAnchorExpr(null);
636         setBundleExpr(null);
637         setForwardExpr(null);
638         setHrefExpr(null);
639         setIndexedExpr(null);
640         setIndexIdExpr(null);
641         setLinkNameExpr(null);
642         setNameExpr(null);
643         setOnblurExpr(null);
644         setOnclickExpr(null);
645         setOndblclickExpr(null);
646         setOnfocusExpr(null);
647         setOnkeydownExpr(null);
648         setOnkeypressExpr(null);
649         setOnkeyupExpr(null);
650         setOnmousedownExpr(null);
651         setOnmousemoveExpr(null);
652         setOnmouseoutExpr(null);
653         setOnmouseoverExpr(null);
654         setOnmouseupExpr(null);
655         setPageExpr(null);
656         setParamIdExpr(null);
657         setParamNameExpr(null);
658         setParamPropertyExpr(null);
659         setParamScopeExpr(null);
660         setPropertyExpr(null);
661         setScopeExpr(null);
662         setStyleExpr(null);
663         setStyleClassExpr(null);
664         setStyleIdExpr(null);
665         setTabindexExpr(null);
666         setTargetExpr(null);
667         setTitleExpr(null);
668         setTitleKeyExpr(null);
669         setTransactionExpr(null);
670         setUseLocalEncodingExpr(null);
671     }
672
673     /**
674      * Process the start tag.
675      *
676      * @exception JspException if a JSP exception has occurred
677      */

678     public int doStartTag() throws JspException JavaDoc {
679         evaluateExpressions();
680         return (super.doStartTag());
681     }
682
683     /**
684      * Processes all attribute values which use the JSTL expression evaluation
685      * engine to determine their values.
686      *
687      * @exception JspException if a JSP exception has occurred
688      */

689     private void evaluateExpressions() throws JspException JavaDoc {
690         String JavaDoc string = null;
691         Boolean JavaDoc bool = null;
692
693         if ((string = EvalHelper.evalString("accessKey", getAccesskeyExpr(),
694                                             this, pageContext)) != null)
695             setAccesskey(string);
696
697         if ((string = EvalHelper.evalString("action", getActionExpr(),
698                                             this, pageContext)) != null)
699             setAction(string);
700
701         if ((string = EvalHelper.evalString("module", getModuleExpr(),
702                                             this, pageContext)) != null)
703             setModule(string);
704
705         if ((string = EvalHelper.evalString("anchor", getAnchorExpr(),
706                                             this, pageContext)) != null)
707             setAnchor(string);
708
709         if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
710                                             this, pageContext)) != null)
711             setBundle(string);
712
713         if ((string = EvalHelper.evalString("forward", getForwardExpr(),
714                                             this, pageContext)) != null)
715             setForward(string);
716
717         if ((string = EvalHelper.evalString("href", getHrefExpr(),
718                                             this, pageContext)) != null)
719             setHref(string);
720
721         if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
722                                            this, pageContext)) != null)
723             setIndexed(bool.booleanValue());
724
725         if ((string = EvalHelper.evalString("indexId", getIndexIdExpr(),
726                                             this, pageContext)) != null)
727             setIndexId(string);
728
729         if ((string = EvalHelper.evalString("linkName", getLinkNameExpr(),
730                                             this, pageContext)) != null)
731             setLinkName(string);
732
733         if ((string = EvalHelper.evalString("name", getNameExpr(),
734                                             this, pageContext)) != null)
735             setName(string);
736
737         if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
738                                             this, pageContext)) != null)
739             setOnblur(string);
740
741         if ((string = EvalHelper.evalString("onclick", getOnclickExpr(),
742                                             this, pageContext)) != null)
743             setOnclick(string);
744
745         if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(),
746                                             this, pageContext)) != null)
747             setOndblclick(string);
748
749         if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(),
750                                             this, pageContext)) != null)
751             setOnfocus(string);
752
753         if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(),
754                                             this, pageContext)) != null)
755             setOnkeydown(string);
756
757         if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(),
758                                             this, pageContext)) != null)
759             setOnkeypress(string);
760
761         if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(),
762                                             this, pageContext)) != null)
763             setOnkeyup(string);
764
765         if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
766                                             this, pageContext)) != null)
767             setOnmousedown(string);
768
769         if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
770                                             this, pageContext)) != null)
771             setOnmousemove(string);
772
773         if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(),
774                                             this, pageContext)) != null)
775             setOnmouseout(string);
776
777         if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
778                                             this, pageContext)) != null)
779             setOnmouseover(string);
780
781         if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(),
782                                             this, pageContext)) != null)
783             setOnmouseup(string);
784
785         if ((string = EvalHelper.evalString("page", getPageExpr(),
786                                             this, pageContext)) != null)
787             setPage(string);
788
789         if ((string = EvalHelper.evalString("paramId", getParamIdExpr(),
790                                             this, pageContext)) != null)
791             setParamId(string);
792
793         if ((string = EvalHelper.evalString("paramName", getParamNameExpr(),
794                                             this, pageContext)) != null)
795             setParamName(string);
796
797         if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(),
798                                             this, pageContext)) != null)
799             setParamProperty(string);
800
801         if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(),
802                                             this, pageContext)) != null)
803             setParamScope(string);
804
805         if ((string = EvalHelper.evalString("property", getPropertyExpr(),
806                                             this, pageContext)) != null)
807             setProperty(string);
808
809         if ((string = EvalHelper.evalString("scope", getScopeExpr(),
810                                             this, pageContext)) != null)
811             setScope(string);
812
813         if ((string = EvalHelper.evalString("style", getStyleExpr(),
814                                             this, pageContext)) != null)
815             setStyle(string);
816
817         if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(),
818                                             this, pageContext)) != null)
819             setStyleClass(string);
820
821         if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(),
822                                             this, pageContext)) != null)
823             setStyleId(string);
824
825         if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(),
826                                             this, pageContext)) != null)
827             setTabindex(string);
828
829         if ((string = EvalHelper.evalString("target", getTargetExpr(),
830                                             this, pageContext)) != null)
831             setTarget(string);
832
833         if ((string = EvalHelper.evalString("title", getTitleExpr(),
834                                             this, pageContext)) != null)
835             setTitle(string);
836
837         if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(),
838                                             this, pageContext)) != null)
839             setTitleKey(string);
840
841         if ((bool = EvalHelper.evalBoolean("transaction", getTransactionExpr(),
842                                            this, pageContext)) != null)
843             setTransaction(bool.booleanValue());
844
845         if ((bool = EvalHelper.evalBoolean("useLocalEncoding", getUseLocalEncodingExpr(),
846                                            this, pageContext)) != null)
847             setUseLocalEncoding(bool.booleanValue());
848     }
849 }
850
Popular Tags