0001: /*
0002: * $Id: ELImgTag.java 479635 2006-11-27 14:27:18Z pbenedict $
0003: *
0004: * Licensed to the Apache Software Foundation (ASF) under one
0005: * or more contributor license agreements. See the NOTICE file
0006: * distributed with this work for additional information
0007: * regarding copyright ownership. The ASF licenses this file
0008: * to you under the Apache License, Version 2.0 (the
0009: * "License"); you may not use this file except in compliance
0010: * with the License. You may obtain a copy of the License at
0011: *
0012: * http://www.apache.org/licenses/LICENSE-2.0
0013: *
0014: * Unless required by applicable law or agreed to in writing,
0015: * software distributed under the License is distributed on an
0016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0017: * KIND, either express or implied. See the License for the
0018: * specific language governing permissions and limitations
0019: * under the License.
0020: */
0021: package org.apache.strutsel.taglib.html;
0022:
0023: import org.apache.struts.taglib.html.ImgTag;
0024: import org.apache.strutsel.taglib.utils.EvalHelper;
0025:
0026: import javax.servlet.jsp.JspException;
0027:
0028: /**
0029: * <p>Generate an IMG tag to the specified image URI. </p>
0030: *
0031: * <p>TODO:</p>
0032: *
0033: * <ul>
0034: *
0035: * <li>make the <strong>alt</strong> and <strong>src</strong> settable from
0036: * properties (for i18n)</li>
0037: *
0038: * <li>handle <strong>onLoad</strong>, <strong>onAbort</strong>, and
0039: * <strong>onError</strong> events (my JavaScript book is very old, there may
0040: * be more unsupported events in the past couple of IE versions) </li>
0041: *
0042: * </ul>
0043: *
0044: * <p> This class is a subclass of the class <code>org.apache.struts.taglib.html.ImgTag</code>
0045: * which provides most of the described functionality. This subclass allows
0046: * all attribute values to be specified as expressions utilizing the
0047: * JavaServer Pages Standard Library expression language. </p>
0048: *
0049: * @version $Rev: 479635 $
0050: */
0051: public class ELImgTag extends ImgTag {
0052: /**
0053: * Instance variable mapped to "action" tag attribute. (Mapping set in
0054: * associated BeanInfo class.)
0055: */
0056: private String actionExpr;
0057:
0058: /**
0059: * Instance variable mapped to "module" tag attribute. (Mapping set in
0060: * associated BeanInfo class.)
0061: */
0062: private String moduleExpr;
0063:
0064: /**
0065: * Instance variable mapped to "align" tag attribute. (Mapping set in
0066: * associated BeanInfo class.)
0067: */
0068: private String alignExpr;
0069:
0070: /**
0071: * Instance variable mapped to "alt" tag attribute. (Mapping set in
0072: * associated BeanInfo class.)
0073: */
0074: private String altExpr;
0075:
0076: /**
0077: * Instance variable mapped to "altKey" tag attribute. (Mapping set in
0078: * associated BeanInfo class.)
0079: */
0080: private String altKeyExpr;
0081:
0082: /**
0083: * Instance variable mapped to "border" tag attribute. (Mapping set in
0084: * associated BeanInfo class.)
0085: */
0086: private String borderExpr;
0087:
0088: /**
0089: * Instance variable mapped to "bundle" tag attribute. (Mapping set in
0090: * associated BeanInfo class.)
0091: */
0092: private String bundleExpr;
0093:
0094: /**
0095: * Instance variable mapped to "dir" tag attribute. (Mapping set in
0096: * associated BeanInfo class.)
0097: */
0098: private String dirExpr;
0099:
0100: /**
0101: * Instance variable mapped to "height" tag attribute. (Mapping set in
0102: * associated BeanInfo class.)
0103: */
0104: private String heightExpr;
0105:
0106: /**
0107: * Instance variable mapped to "hspace" tag attribute. (Mapping set in
0108: * associated BeanInfo class.)
0109: */
0110: private String hspaceExpr;
0111:
0112: /**
0113: * Instance variable mapped to "imageName" tag attribute. (Mapping set in
0114: * associated BeanInfo class.)
0115: */
0116: private String imageNameExpr;
0117:
0118: /**
0119: * Instance variable mapped to "ismap" tag attribute. (Mapping set in
0120: * associated BeanInfo class.)
0121: */
0122: private String ismapExpr;
0123:
0124: /**
0125: * Instance variable mapped to "lang" tag attribute. (Mapping set in
0126: * associated BeanInfo class.)
0127: */
0128: private String langExpr;
0129:
0130: /**
0131: * Instance variable mapped to "locale" tag attribute. (Mapping set in
0132: * associated BeanInfo class.)
0133: */
0134: private String localeExpr;
0135:
0136: /**
0137: * Instance variable mapped to "name" tag attribute. (Mapping set in
0138: * associated BeanInfo class.)
0139: */
0140: private String nameExpr;
0141:
0142: /**
0143: * Instance variable mapped to "onclick" tag attribute. (Mapping set in
0144: * associated BeanInfo class.)
0145: */
0146: private String onclickExpr;
0147:
0148: /**
0149: * Instance variable mapped to "ondblclick" tag attribute. (Mapping set in
0150: * associated BeanInfo class.)
0151: */
0152: private String ondblclickExpr;
0153:
0154: /**
0155: * Instance variable mapped to "onkeydown" tag attribute. (Mapping set in
0156: * associated BeanInfo class.)
0157: */
0158: private String onkeydownExpr;
0159:
0160: /**
0161: * Instance variable mapped to "onkeypress" tag attribute. (Mapping set in
0162: * associated BeanInfo class.)
0163: */
0164: private String onkeypressExpr;
0165:
0166: /**
0167: * Instance variable mapped to "onkeyup" tag attribute. (Mapping set in
0168: * associated BeanInfo class.)
0169: */
0170: private String onkeyupExpr;
0171:
0172: /**
0173: * Instance variable mapped to "onmousedown" tag attribute. (Mapping set
0174: * in associated BeanInfo class.)
0175: */
0176: private String onmousedownExpr;
0177:
0178: /**
0179: * Instance variable mapped to "onmousemove" tag attribute. (Mapping set
0180: * in associated BeanInfo class.)
0181: */
0182: private String onmousemoveExpr;
0183:
0184: /**
0185: * Instance variable mapped to "onmouseout" tag attribute. (Mapping set in
0186: * associated BeanInfo class.)
0187: */
0188: private String onmouseoutExpr;
0189:
0190: /**
0191: * Instance variable mapped to "onmouseover" tag attribute. (Mapping set
0192: * in associated BeanInfo class.)
0193: */
0194: private String onmouseoverExpr;
0195:
0196: /**
0197: * Instance variable mapped to "onmouseup" tag attribute. (Mapping set in
0198: * associated BeanInfo class.)
0199: */
0200: private String onmouseupExpr;
0201:
0202: /**
0203: * Instance variable mapped to "paramId" tag attribute. (Mapping set in
0204: * associated BeanInfo class.)
0205: */
0206: private String paramIdExpr;
0207:
0208: /**
0209: * Instance variable mapped to "page" tag attribute. (Mapping set in
0210: * associated BeanInfo class.)
0211: */
0212: private String pageExpr;
0213:
0214: /**
0215: * Instance variable mapped to "pageKey" tag attribute. (Mapping set in
0216: * associated BeanInfo class.)
0217: */
0218: private String pageKeyExpr;
0219:
0220: /**
0221: * Instance variable mapped to "paramName" tag attribute. (Mapping set in
0222: * associated BeanInfo class.)
0223: */
0224: private String paramNameExpr;
0225:
0226: /**
0227: * Instance variable mapped to "paramProperty" tag attribute. (Mapping set
0228: * in associated BeanInfo class.)
0229: */
0230: private String paramPropertyExpr;
0231:
0232: /**
0233: * Instance variable mapped to "paramScope" tag attribute. (Mapping set in
0234: * associated BeanInfo class.)
0235: */
0236: private String paramScopeExpr;
0237:
0238: /**
0239: * Instance variable mapped to "property" tag attribute. (Mapping set in
0240: * associated BeanInfo class.)
0241: */
0242: private String propertyExpr;
0243:
0244: /**
0245: * Instance variable mapped to "scope" tag attribute. (Mapping set in
0246: * associated BeanInfo class.)
0247: */
0248: private String scopeExpr;
0249:
0250: /**
0251: * Instance variable mapped to "src" tag attribute. (Mapping set in
0252: * associated BeanInfo class.)
0253: */
0254: private String srcExpr;
0255:
0256: /**
0257: * Instance variable mapped to "srcKey" tag attribute. (Mapping set in
0258: * associated BeanInfo class.)
0259: */
0260: private String srcKeyExpr;
0261:
0262: /**
0263: * Instance variable mapped to "style" tag attribute. (Mapping set in
0264: * associated BeanInfo class.)
0265: */
0266: private String styleExpr;
0267:
0268: /**
0269: * Instance variable mapped to "styleClass" tag attribute. (Mapping set in
0270: * associated BeanInfo class.)
0271: */
0272: private String styleClassExpr;
0273:
0274: /**
0275: * Instance variable mapped to "styleId" tag attribute. (Mapping set in
0276: * associated BeanInfo class.)
0277: */
0278: private String styleIdExpr;
0279:
0280: /**
0281: * Instance variable mapped to "title" tag attribute. (Mapping set in
0282: * associated BeanInfo class.)
0283: */
0284: private String titleExpr;
0285:
0286: /**
0287: * Instance variable mapped to "titleKey" tag attribute. (Mapping set in
0288: * associated BeanInfo class.)
0289: */
0290: private String titleKeyExpr;
0291:
0292: /**
0293: * Instance variable mapped to "useLocalEncoding" tag attribute. (Mapping
0294: * set in associated BeanInfo class.)
0295: */
0296: private String useLocalEncodingExpr;
0297:
0298: /**
0299: * Instance variable mapped to "usemap" tag attribute. (Mapping set in
0300: * associated BeanInfo class.)
0301: */
0302: private String usemapExpr;
0303:
0304: /**
0305: * Instance variable mapped to "vspace" tag attribute. (Mapping set in
0306: * associated BeanInfo class.)
0307: */
0308: private String vspaceExpr;
0309:
0310: /**
0311: * Instance variable mapped to "width" tag attribute. (Mapping set in
0312: * associated BeanInfo class.)
0313: */
0314: private String widthExpr;
0315:
0316: /**
0317: * Getter method for "action" tag attribute. (Mapping set in associated
0318: * BeanInfo class.)
0319: */
0320: public String getActionExpr() {
0321: return (actionExpr);
0322: }
0323:
0324: /**
0325: * Getter method for "module" tag attribute. (Mapping set in associated
0326: * BeanInfo class.)
0327: */
0328: public String getModuleExpr() {
0329: return (moduleExpr);
0330: }
0331:
0332: /**
0333: * Getter method for "align" tag attribute. (Mapping set in associated
0334: * BeanInfo class.)
0335: */
0336: public String getAlignExpr() {
0337: return (alignExpr);
0338: }
0339:
0340: /**
0341: * Getter method for "alt" tag attribute. (Mapping set in associated
0342: * BeanInfo class.)
0343: */
0344: public String getAltExpr() {
0345: return (altExpr);
0346: }
0347:
0348: /**
0349: * Getter method for "altKey" tag attribute. (Mapping set in associated
0350: * BeanInfo class.)
0351: */
0352: public String getAltKeyExpr() {
0353: return (altKeyExpr);
0354: }
0355:
0356: /**
0357: * Getter method for "border" tag attribute. (Mapping set in associated
0358: * BeanInfo class.)
0359: */
0360: public String getBorderExpr() {
0361: return (borderExpr);
0362: }
0363:
0364: /**
0365: * Getter method for "bundle" tag attribute. (Mapping set in associated
0366: * BeanInfo class.)
0367: */
0368: public String getBundleExpr() {
0369: return (bundleExpr);
0370: }
0371:
0372: /**
0373: * Getter method for "dir" tag attribute. (Mapping set in associated
0374: * BeanInfo class.)
0375: */
0376: public String getDirExpr() {
0377: return (dirExpr);
0378: }
0379:
0380: /**
0381: * Getter method for "height" tag attribute. (Mapping set in associated
0382: * BeanInfo class.)
0383: */
0384: public String getHeightExpr() {
0385: return (heightExpr);
0386: }
0387:
0388: /**
0389: * Getter method for "hspace" tag attribute. (Mapping set in associated
0390: * BeanInfo class.)
0391: */
0392: public String getHspaceExpr() {
0393: return (hspaceExpr);
0394: }
0395:
0396: /**
0397: * Getter method for "imageName" tag attribute. (Mapping set in associated
0398: * BeanInfo class.)
0399: */
0400: public String getImageNameExpr() {
0401: return (imageNameExpr);
0402: }
0403:
0404: /**
0405: * Getter method for "ismap" tag attribute. (Mapping set in associated
0406: * BeanInfo class.)
0407: */
0408: public String getIsmapExpr() {
0409: return (ismapExpr);
0410: }
0411:
0412: /**
0413: * Getter method for "lang" tag attribute. (Mapping set in associated
0414: * BeanInfo class.)
0415: */
0416: public String getLangExpr() {
0417: return (langExpr);
0418: }
0419:
0420: /**
0421: * Getter method for "locale" tag attribute. (Mapping set in associated
0422: * BeanInfo class.)
0423: */
0424: public String getLocaleExpr() {
0425: return (localeExpr);
0426: }
0427:
0428: /**
0429: * Getter method for "name" tag attribute. (Mapping set in associated
0430: * BeanInfo class.)
0431: */
0432: public String getNameExpr() {
0433: return (nameExpr);
0434: }
0435:
0436: /**
0437: * Getter method for "onclick" tag attribute. (Mapping set in associated
0438: * BeanInfo class.)
0439: */
0440: public String getOnclickExpr() {
0441: return (onclickExpr);
0442: }
0443:
0444: /**
0445: * Getter method for "ondblclick" tag attribute. (Mapping set in
0446: * associated BeanInfo class.)
0447: */
0448: public String getOndblclickExpr() {
0449: return (ondblclickExpr);
0450: }
0451:
0452: /**
0453: * Getter method for "onkeydown" tag attribute. (Mapping set in associated
0454: * BeanInfo class.)
0455: */
0456: public String getOnkeydownExpr() {
0457: return (onkeydownExpr);
0458: }
0459:
0460: /**
0461: * Getter method for "onkeypress" tag attribute. (Mapping set in
0462: * associated BeanInfo class.)
0463: */
0464: public String getOnkeypressExpr() {
0465: return (onkeypressExpr);
0466: }
0467:
0468: /**
0469: * Getter method for "onkeyup" tag attribute. (Mapping set in associated
0470: * BeanInfo class.)
0471: */
0472: public String getOnkeyupExpr() {
0473: return (onkeyupExpr);
0474: }
0475:
0476: /**
0477: * Getter method for "onmousedown" tag attribute. (Mapping set in
0478: * associated BeanInfo class.)
0479: */
0480: public String getOnmousedownExpr() {
0481: return (onmousedownExpr);
0482: }
0483:
0484: /**
0485: * Getter method for "onmousemove" tag attribute. (Mapping set in
0486: * associated BeanInfo class.)
0487: */
0488: public String getOnmousemoveExpr() {
0489: return (onmousemoveExpr);
0490: }
0491:
0492: /**
0493: * Getter method for "onmouseout" tag attribute. (Mapping set in
0494: * associated BeanInfo class.)
0495: */
0496: public String getOnmouseoutExpr() {
0497: return (onmouseoutExpr);
0498: }
0499:
0500: /**
0501: * Getter method for "onmouseover" tag attribute. (Mapping set in
0502: * associated BeanInfo class.)
0503: */
0504: public String getOnmouseoverExpr() {
0505: return (onmouseoverExpr);
0506: }
0507:
0508: /**
0509: * Getter method for "onmouseup" tag attribute. (Mapping set in associated
0510: * BeanInfo class.)
0511: */
0512: public String getOnmouseupExpr() {
0513: return (onmouseupExpr);
0514: }
0515:
0516: /**
0517: * Getter method for "paramId" tag attribute. (Mapping set in associated
0518: * BeanInfo class.)
0519: */
0520: public String getParamIdExpr() {
0521: return (paramIdExpr);
0522: }
0523:
0524: /**
0525: * Getter method for "page" tag attribute. (Mapping set in associated
0526: * BeanInfo class.)
0527: */
0528: public String getPageExpr() {
0529: return (pageExpr);
0530: }
0531:
0532: /**
0533: * Getter method for "pageKey" tag attribute. (Mapping set in associated
0534: * BeanInfo class.)
0535: */
0536: public String getPageKeyExpr() {
0537: return (pageKeyExpr);
0538: }
0539:
0540: /**
0541: * Getter method for "paramName" tag attribute. (Mapping set in associated
0542: * BeanInfo class.)
0543: */
0544: public String getParamNameExpr() {
0545: return (paramNameExpr);
0546: }
0547:
0548: /**
0549: * Getter method for "paramProperty" tag attribute. (Mapping set in
0550: * associated BeanInfo class.)
0551: */
0552: public String getParamPropertyExpr() {
0553: return (paramPropertyExpr);
0554: }
0555:
0556: /**
0557: * Getter method for "paramScope" tag attribute. (Mapping set in
0558: * associated BeanInfo class.)
0559: */
0560: public String getParamScopeExpr() {
0561: return (paramScopeExpr);
0562: }
0563:
0564: /**
0565: * Getter method for "property" tag attribute. (Mapping set in associated
0566: * BeanInfo class.)
0567: */
0568: public String getPropertyExpr() {
0569: return (propertyExpr);
0570: }
0571:
0572: /**
0573: * Getter method for "scope" tag attribute. (Mapping set in associated
0574: * BeanInfo class.)
0575: */
0576: public String getScopeExpr() {
0577: return (scopeExpr);
0578: }
0579:
0580: /**
0581: * Getter method for "src" tag attribute. (Mapping set in associated
0582: * BeanInfo class.)
0583: */
0584: public String getSrcExpr() {
0585: return (srcExpr);
0586: }
0587:
0588: /**
0589: * Getter method for "srcKey" tag attribute. (Mapping set in associated
0590: * BeanInfo class.)
0591: */
0592: public String getSrcKeyExpr() {
0593: return (srcKeyExpr);
0594: }
0595:
0596: /**
0597: * Getter method for "style" tag attribute. (Mapping set in associated
0598: * BeanInfo class.)
0599: */
0600: public String getStyleExpr() {
0601: return (styleExpr);
0602: }
0603:
0604: /**
0605: * Getter method for "styleClass" tag attribute. (Mapping set in
0606: * associated BeanInfo class.)
0607: */
0608: public String getStyleClassExpr() {
0609: return (styleClassExpr);
0610: }
0611:
0612: /**
0613: * Getter method for "styleId" tag attribute. (Mapping set in associated
0614: * BeanInfo class.)
0615: */
0616: public String getStyleIdExpr() {
0617: return (styleIdExpr);
0618: }
0619:
0620: /**
0621: * Getter method for "title" tag attribute. (Mapping set in associated
0622: * BeanInfo class.)
0623: */
0624: public String getTitleExpr() {
0625: return (titleExpr);
0626: }
0627:
0628: /**
0629: * Getter method for "titleKey" tag attribute. (Mapping set in associated
0630: * BeanInfo class.)
0631: */
0632: public String getTitleKeyExpr() {
0633: return (titleKeyExpr);
0634: }
0635:
0636: /**
0637: * Getter method for "useLocalEncoding" tag attribute. (Mapping set in
0638: * associated BeanInfo class.)
0639: */
0640: public String getUseLocalEncodingExpr() {
0641: return (useLocalEncodingExpr);
0642: }
0643:
0644: /**
0645: * Getter method for "usemap" tag attribute. (Mapping set in associated
0646: * BeanInfo class.)
0647: */
0648: public String getUsemapExpr() {
0649: return (usemapExpr);
0650: }
0651:
0652: /**
0653: * Getter method for "vspace" tag attribute. (Mapping set in associated
0654: * BeanInfo class.)
0655: */
0656: public String getVspaceExpr() {
0657: return (vspaceExpr);
0658: }
0659:
0660: /**
0661: * Getter method for "width" tag attribute. (Mapping set in associated
0662: * BeanInfo class.)
0663: */
0664: public String getWidthExpr() {
0665: return (widthExpr);
0666: }
0667:
0668: /**
0669: * Setter method for "action" tag attribute. (Mapping set in associated
0670: * BeanInfo class.)
0671: */
0672: public void setActionExpr(String actionExpr) {
0673: this .actionExpr = actionExpr;
0674: }
0675:
0676: /**
0677: * Setter method for "module" tag attribute. (Mapping set in associated
0678: * BeanInfo class.)
0679: */
0680: public void setModuleExpr(String moduleExpr) {
0681: this .moduleExpr = moduleExpr;
0682: }
0683:
0684: /**
0685: * Setter method for "align" tag attribute. (Mapping set in associated
0686: * BeanInfo class.)
0687: */
0688: public void setAlignExpr(String alignExpr) {
0689: this .alignExpr = alignExpr;
0690: }
0691:
0692: /**
0693: * Setter method for "alt" tag attribute. (Mapping set in associated
0694: * BeanInfo class.)
0695: */
0696: public void setAltExpr(String altExpr) {
0697: this .altExpr = altExpr;
0698: }
0699:
0700: /**
0701: * Setter method for "altKey" tag attribute. (Mapping set in associated
0702: * BeanInfo class.)
0703: */
0704: public void setAltKeyExpr(String altKeyExpr) {
0705: this .altKeyExpr = altKeyExpr;
0706: }
0707:
0708: /**
0709: * Setter method for "border" tag attribute. (Mapping set in associated
0710: * BeanInfo class.)
0711: */
0712: public void setBorderExpr(String borderExpr) {
0713: this .borderExpr = borderExpr;
0714: }
0715:
0716: /**
0717: * Setter method for "bundle" tag attribute. (Mapping set in associated
0718: * BeanInfo class.)
0719: */
0720: public void setBundleExpr(String bundleExpr) {
0721: this .bundleExpr = bundleExpr;
0722: }
0723:
0724: /**
0725: * Setter method for "dir" tag attribute. (Mapping set in associated
0726: * BeanInfo class.)
0727: */
0728: public void setDirExpr(String dirExpr) {
0729: this .dirExpr = dirExpr;
0730: }
0731:
0732: /**
0733: * Setter method for "height" tag attribute. (Mapping set in associated
0734: * BeanInfo class.)
0735: */
0736: public void setHeightExpr(String heightExpr) {
0737: this .heightExpr = heightExpr;
0738: }
0739:
0740: /**
0741: * Setter method for "hspace" tag attribute. (Mapping set in associated
0742: * BeanInfo class.)
0743: */
0744: public void setHspaceExpr(String hspaceExpr) {
0745: this .hspaceExpr = hspaceExpr;
0746: }
0747:
0748: /**
0749: * Setter method for "imageName" tag attribute. (Mapping set in associated
0750: * BeanInfo class.)
0751: */
0752: public void setImageNameExpr(String imageNameExpr) {
0753: this .imageNameExpr = imageNameExpr;
0754: }
0755:
0756: /**
0757: * Setter method for "ismap" tag attribute. (Mapping set in associated
0758: * BeanInfo class.)
0759: */
0760: public void setIsmapExpr(String ismapExpr) {
0761: this .ismapExpr = ismapExpr;
0762: }
0763:
0764: /**
0765: * Setter method for "lang" tag attribute. (Mapping set in associated
0766: * BeanInfo class.)
0767: */
0768: public void setLangExpr(String langExpr) {
0769: this .langExpr = langExpr;
0770: }
0771:
0772: /**
0773: * Setter method for "locale" tag attribute. (Mapping set in associated
0774: * BeanInfo class.)
0775: */
0776: public void setLocaleExpr(String localeExpr) {
0777: this .localeExpr = localeExpr;
0778: }
0779:
0780: /**
0781: * Setter method for "name" tag attribute. (Mapping set in associated
0782: * BeanInfo class.)
0783: */
0784: public void setNameExpr(String nameExpr) {
0785: this .nameExpr = nameExpr;
0786: }
0787:
0788: /**
0789: * Setter method for "onclick" tag attribute. (Mapping set in associated
0790: * BeanInfo class.)
0791: */
0792: public void setOnclickExpr(String onclickExpr) {
0793: this .onclickExpr = onclickExpr;
0794: }
0795:
0796: /**
0797: * Setter method for "ondblclick" tag attribute. (Mapping set in
0798: * associated BeanInfo class.)
0799: */
0800: public void setOndblclickExpr(String ondblclickExpr) {
0801: this .ondblclickExpr = ondblclickExpr;
0802: }
0803:
0804: /**
0805: * Setter method for "onkeydown" tag attribute. (Mapping set in associated
0806: * BeanInfo class.)
0807: */
0808: public void setOnkeydownExpr(String onkeydownExpr) {
0809: this .onkeydownExpr = onkeydownExpr;
0810: }
0811:
0812: /**
0813: * Setter method for "onkeypress" tag attribute. (Mapping set in
0814: * associated BeanInfo class.)
0815: */
0816: public void setOnkeypressExpr(String onkeypressExpr) {
0817: this .onkeypressExpr = onkeypressExpr;
0818: }
0819:
0820: /**
0821: * Setter method for "onkeyup" tag attribute. (Mapping set in associated
0822: * BeanInfo class.)
0823: */
0824: public void setOnkeyupExpr(String onkeyupExpr) {
0825: this .onkeyupExpr = onkeyupExpr;
0826: }
0827:
0828: /**
0829: * Setter method for "onmousedown" tag attribute. (Mapping set in
0830: * associated BeanInfo class.)
0831: */
0832: public void setOnmousedownExpr(String onmousedownExpr) {
0833: this .onmousedownExpr = onmousedownExpr;
0834: }
0835:
0836: /**
0837: * Setter method for "onmousemove" tag attribute. (Mapping set in
0838: * associated BeanInfo class.)
0839: */
0840: public void setOnmousemoveExpr(String onmousemoveExpr) {
0841: this .onmousemoveExpr = onmousemoveExpr;
0842: }
0843:
0844: /**
0845: * Setter method for "onmouseout" tag attribute. (Mapping set in
0846: * associated BeanInfo class.)
0847: */
0848: public void setOnmouseoutExpr(String onmouseoutExpr) {
0849: this .onmouseoutExpr = onmouseoutExpr;
0850: }
0851:
0852: /**
0853: * Setter method for "onmouseover" tag attribute. (Mapping set in
0854: * associated BeanInfo class.)
0855: */
0856: public void setOnmouseoverExpr(String onmouseoverExpr) {
0857: this .onmouseoverExpr = onmouseoverExpr;
0858: }
0859:
0860: /**
0861: * Setter method for "onmouseup" tag attribute. (Mapping set in associated
0862: * BeanInfo class.)
0863: */
0864: public void setOnmouseupExpr(String onmouseupExpr) {
0865: this .onmouseupExpr = onmouseupExpr;
0866: }
0867:
0868: /**
0869: * Setter method for "paramId" tag attribute. (Mapping set in associated
0870: * BeanInfo class.)
0871: */
0872: public void setParamIdExpr(String paramIdExpr) {
0873: this .paramIdExpr = paramIdExpr;
0874: }
0875:
0876: /**
0877: * Setter method for "page" tag attribute. (Mapping set in associated
0878: * BeanInfo class.)
0879: */
0880: public void setPageExpr(String pageExpr) {
0881: this .pageExpr = pageExpr;
0882: }
0883:
0884: /**
0885: * Setter method for "pageKey" tag attribute. (Mapping set in associated
0886: * BeanInfo class.)
0887: */
0888: public void setPageKeyExpr(String pageKeyExpr) {
0889: this .pageKeyExpr = pageKeyExpr;
0890: }
0891:
0892: /**
0893: * Setter method for "paramName" tag attribute. (Mapping set in associated
0894: * BeanInfo class.)
0895: */
0896: public void setParamNameExpr(String paramNameExpr) {
0897: this .paramNameExpr = paramNameExpr;
0898: }
0899:
0900: /**
0901: * Setter method for "paramProperty" tag attribute. (Mapping set in
0902: * associated BeanInfo class.)
0903: */
0904: public void setParamPropertyExpr(String paramPropertyExpr) {
0905: this .paramPropertyExpr = paramPropertyExpr;
0906: }
0907:
0908: /**
0909: * Setter method for "paramScope" tag attribute. (Mapping set in
0910: * associated BeanInfo class.)
0911: */
0912: public void setParamScopeExpr(String paramScopeExpr) {
0913: this .paramScopeExpr = paramScopeExpr;
0914: }
0915:
0916: /**
0917: * Setter method for "property" tag attribute. (Mapping set in associated
0918: * BeanInfo class.)
0919: */
0920: public void setPropertyExpr(String propertyExpr) {
0921: this .propertyExpr = propertyExpr;
0922: }
0923:
0924: /**
0925: * Setter method for "scope" tag attribute. (Mapping set in associated
0926: * BeanInfo class.)
0927: */
0928: public void setScopeExpr(String scopeExpr) {
0929: this .scopeExpr = scopeExpr;
0930: }
0931:
0932: /**
0933: * Setter method for "src" tag attribute. (Mapping set in associated
0934: * BeanInfo class.)
0935: */
0936: public void setSrcExpr(String srcExpr) {
0937: this .srcExpr = srcExpr;
0938: }
0939:
0940: /**
0941: * Setter method for "srcKey" tag attribute. (Mapping set in associated
0942: * BeanInfo class.)
0943: */
0944: public void setSrcKeyExpr(String srcKeyExpr) {
0945: this .srcKeyExpr = srcKeyExpr;
0946: }
0947:
0948: /**
0949: * Setter method for "style" tag attribute. (Mapping set in associated
0950: * BeanInfo class.)
0951: */
0952: public void setStyleExpr(String styleExpr) {
0953: this .styleExpr = styleExpr;
0954: }
0955:
0956: /**
0957: * Setter method for "styleClass" tag attribute. (Mapping set in
0958: * associated BeanInfo class.)
0959: */
0960: public void setStyleClassExpr(String styleClassExpr) {
0961: this .styleClassExpr = styleClassExpr;
0962: }
0963:
0964: /**
0965: * Setter method for "styleId" tag attribute. (Mapping set in associated
0966: * BeanInfo class.)
0967: */
0968: public void setStyleIdExpr(String styleIdExpr) {
0969: this .styleIdExpr = styleIdExpr;
0970: }
0971:
0972: /**
0973: * Setter method for "title" tag attribute. (Mapping set in associated
0974: * BeanInfo class.)
0975: */
0976: public void setTitleExpr(String titleExpr) {
0977: this .titleExpr = titleExpr;
0978: }
0979:
0980: /**
0981: * Setter method for "titleKey" tag attribute. (Mapping set in associated
0982: * BeanInfo class.)
0983: */
0984: public void setTitleKeyExpr(String titleKeyExpr) {
0985: this .titleKeyExpr = titleKeyExpr;
0986: }
0987:
0988: /**
0989: * Setter method for "useLocalEncoding" tag attribute. (Mapping set in
0990: * associated BeanInfo class.)
0991: */
0992: public void setUseLocalEncodingExpr(String useLocalEncodingExpr) {
0993: this .useLocalEncodingExpr = useLocalEncodingExpr;
0994: }
0995:
0996: /**
0997: * Setter method for "usemap" tag attribute. (Mapping set in associated
0998: * BeanInfo class.)
0999: */
1000: public void setUsemapExpr(String usemapExpr) {
1001: this .usemapExpr = usemapExpr;
1002: }
1003:
1004: /**
1005: * Setter method for "vspace" tag attribute. (Mapping set in associated
1006: * BeanInfo class.)
1007: */
1008: public void setVspaceExpr(String vspaceExpr) {
1009: this .vspaceExpr = vspaceExpr;
1010: }
1011:
1012: /**
1013: * Setter method for "width" tag attribute. (Mapping set in associated
1014: * BeanInfo class.)
1015: */
1016: public void setWidthExpr(String widthExpr) {
1017: this .widthExpr = widthExpr;
1018: }
1019:
1020: /**
1021: * Resets attribute values for tag reuse.
1022: */
1023: public void release() {
1024: super .release();
1025: setActionExpr(null);
1026: setModuleExpr(null);
1027: setAlignExpr(null);
1028: setAltExpr(null);
1029: setAltKeyExpr(null);
1030: setBorderExpr(null);
1031: setBundleExpr(null);
1032: setDirExpr(null);
1033: setHeightExpr(null);
1034: setHspaceExpr(null);
1035: setImageNameExpr(null);
1036: setIsmapExpr(null);
1037: setLangExpr(null);
1038: setLocaleExpr(null);
1039: setNameExpr(null);
1040: setOnclickExpr(null);
1041: setOndblclickExpr(null);
1042: setOnkeydownExpr(null);
1043: setOnkeypressExpr(null);
1044: setOnkeyupExpr(null);
1045: setOnmousedownExpr(null);
1046: setOnmousemoveExpr(null);
1047: setOnmouseoutExpr(null);
1048: setOnmouseoverExpr(null);
1049: setOnmouseupExpr(null);
1050: setPageExpr(null);
1051: setPageKeyExpr(null);
1052: setParamIdExpr(null);
1053: setParamNameExpr(null);
1054: setParamPropertyExpr(null);
1055: setParamScopeExpr(null);
1056: setPropertyExpr(null);
1057: setScopeExpr(null);
1058: setSrcExpr(null);
1059: setSrcKeyExpr(null);
1060: setStyleExpr(null);
1061: setStyleClassExpr(null);
1062: setStyleIdExpr(null);
1063: setTitleExpr(null);
1064: setTitleKeyExpr(null);
1065: setUseLocalEncodingExpr(null);
1066: setUsemapExpr(null);
1067: setVspaceExpr(null);
1068: setWidthExpr(null);
1069: }
1070:
1071: /**
1072: * Process the start tag.
1073: *
1074: * @throws JspException if a JSP exception has occurred
1075: */
1076: public int doStartTag() throws JspException {
1077: evaluateExpressions();
1078:
1079: return (super .doStartTag());
1080: }
1081:
1082: /**
1083: * Processes all attribute values which use the JSTL expression evaluation
1084: * engine to determine their values.
1085: *
1086: * @throws JspException if a JSP exception has occurred
1087: */
1088: private void evaluateExpressions() throws JspException {
1089: String string = null;
1090: Boolean bool = null;
1091:
1092: if ((string = EvalHelper.evalString("action", getActionExpr(),
1093: this , pageContext)) != null) {
1094: setAction(string);
1095: }
1096:
1097: if ((string = EvalHelper.evalString("module", getModuleExpr(),
1098: this , pageContext)) != null) {
1099: setModule(string);
1100: }
1101:
1102: if ((string = EvalHelper.evalString("align", getAlignExpr(),
1103: this , pageContext)) != null) {
1104: setAlign(string);
1105: }
1106:
1107: if ((string = EvalHelper.evalString("alt", getAltExpr(), this ,
1108: pageContext)) != null) {
1109: setAlt(string);
1110: }
1111:
1112: if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
1113: this , pageContext)) != null) {
1114: setAltKey(string);
1115: }
1116:
1117: if ((string = EvalHelper.evalString("border", getBorderExpr(),
1118: this , pageContext)) != null) {
1119: setBorder(string);
1120: }
1121:
1122: if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
1123: this , pageContext)) != null) {
1124: setBundle(string);
1125: }
1126:
1127: if ((string = EvalHelper.evalString("dir", getDirExpr(), this ,
1128: pageContext)) != null) {
1129: setDir(string);
1130: }
1131:
1132: if ((string = EvalHelper.evalString("height", getHeightExpr(),
1133: this , pageContext)) != null) {
1134: setHeight(string);
1135: }
1136:
1137: if ((string = EvalHelper.evalString("hspace", getHspaceExpr(),
1138: this , pageContext)) != null) {
1139: setHspace(string);
1140: }
1141:
1142: if ((string = EvalHelper.evalString("imageName",
1143: getImageNameExpr(), this , pageContext)) != null) {
1144: setImageName(string);
1145: }
1146:
1147: if ((string = EvalHelper.evalString("ismap", getIsmapExpr(),
1148: this , pageContext)) != null) {
1149: setIsmap(string);
1150: }
1151:
1152: if ((string = EvalHelper.evalString("lang", getLangExpr(),
1153: this , pageContext)) != null) {
1154: setLang(string);
1155: }
1156:
1157: if ((string = EvalHelper.evalString("locale", getLocaleExpr(),
1158: this , pageContext)) != null) {
1159: setLocale(string);
1160: }
1161:
1162: if ((string = EvalHelper.evalString("name", getNameExpr(),
1163: this , pageContext)) != null) {
1164: setName(string);
1165: }
1166:
1167: if ((string = EvalHelper.evalString("onclick",
1168: getOnclickExpr(), this , pageContext)) != null) {
1169: setOnclick(string);
1170: }
1171:
1172: if ((string = EvalHelper.evalString("ondblclick",
1173: getOndblclickExpr(), this , pageContext)) != null) {
1174: setOndblclick(string);
1175: }
1176:
1177: if ((string = EvalHelper.evalString("onkeydown",
1178: getOnkeydownExpr(), this , pageContext)) != null) {
1179: setOnkeydown(string);
1180: }
1181:
1182: if ((string = EvalHelper.evalString("onkeypress",
1183: getOnkeypressExpr(), this , pageContext)) != null) {
1184: setOnkeypress(string);
1185: }
1186:
1187: if ((string = EvalHelper.evalString("onkeyup",
1188: getOnkeyupExpr(), this , pageContext)) != null) {
1189: setOnkeyup(string);
1190: }
1191:
1192: if ((string = EvalHelper.evalString("onmousedown",
1193: getOnmousedownExpr(), this , pageContext)) != null) {
1194: setOnmousedown(string);
1195: }
1196:
1197: if ((string = EvalHelper.evalString("onmousemove",
1198: getOnmousemoveExpr(), this , pageContext)) != null) {
1199: setOnmousemove(string);
1200: }
1201:
1202: if ((string = EvalHelper.evalString("onmouseout",
1203: getOnmouseoutExpr(), this , pageContext)) != null) {
1204: setOnmouseout(string);
1205: }
1206:
1207: if ((string = EvalHelper.evalString("onmouseover",
1208: getOnmouseoverExpr(), this , pageContext)) != null) {
1209: setOnmouseover(string);
1210: }
1211:
1212: if ((string = EvalHelper.evalString("onmouseup",
1213: getOnmouseupExpr(), this , pageContext)) != null) {
1214: setOnmouseup(string);
1215: }
1216:
1217: if ((string = EvalHelper.evalString("paramId",
1218: getParamIdExpr(), this , pageContext)) != null) {
1219: setParamId(string);
1220: }
1221:
1222: if ((string = EvalHelper.evalString("page", getPageExpr(),
1223: this , pageContext)) != null) {
1224: setPage(string);
1225: }
1226:
1227: if ((string = EvalHelper.evalString("pageKey",
1228: getPageKeyExpr(), this , pageContext)) != null) {
1229: setPageKey(string);
1230: }
1231:
1232: if ((string = EvalHelper.evalString("paramName",
1233: getParamNameExpr(), this , pageContext)) != null) {
1234: setParamName(string);
1235: }
1236:
1237: if ((string = EvalHelper.evalString("paramProperty",
1238: getParamPropertyExpr(), this , pageContext)) != null) {
1239: setParamProperty(string);
1240: }
1241:
1242: if ((string = EvalHelper.evalString("paramScope",
1243: getParamScopeExpr(), this , pageContext)) != null) {
1244: setParamScope(string);
1245: }
1246:
1247: if ((string = EvalHelper.evalString("property",
1248: getPropertyExpr(), this , pageContext)) != null) {
1249: setProperty(string);
1250: }
1251:
1252: if ((string = EvalHelper.evalString("scope", getScopeExpr(),
1253: this , pageContext)) != null) {
1254: setScope(string);
1255: }
1256:
1257: if ((string = EvalHelper.evalString("src", getSrcExpr(), this ,
1258: pageContext)) != null) {
1259: setSrc(string);
1260: }
1261:
1262: if ((string = EvalHelper.evalString("srcKey", getSrcKeyExpr(),
1263: this , pageContext)) != null) {
1264: setSrcKey(string);
1265: }
1266:
1267: if ((string = EvalHelper.evalString("style", getStyleExpr(),
1268: this , pageContext)) != null) {
1269: setStyle(string);
1270: }
1271:
1272: if ((string = EvalHelper.evalString("styleClass",
1273: getStyleClassExpr(), this , pageContext)) != null) {
1274: setStyleClass(string);
1275: }
1276:
1277: if ((string = EvalHelper.evalString("styleId",
1278: getStyleIdExpr(), this , pageContext)) != null) {
1279: setStyleId(string);
1280: }
1281:
1282: if ((string = EvalHelper.evalString("title", getTitleExpr(),
1283: this , pageContext)) != null) {
1284: setTitle(string);
1285: }
1286:
1287: if ((string = EvalHelper.evalString("titleKey",
1288: getTitleKeyExpr(), this , pageContext)) != null) {
1289: setTitleKey(string);
1290: }
1291:
1292: if ((bool = EvalHelper.evalBoolean("useLocalEncoding",
1293: getUseLocalEncodingExpr(), this , pageContext)) != null) {
1294: setUseLocalEncoding(bool.booleanValue());
1295: }
1296:
1297: if ((string = EvalHelper.evalString("usemap", getUsemapExpr(),
1298: this , pageContext)) != null) {
1299: setUsemap(string);
1300: }
1301:
1302: if ((string = EvalHelper.evalString("vspace", getVspaceExpr(),
1303: this , pageContext)) != null) {
1304: setVspace(string);
1305: }
1306:
1307: if ((string = EvalHelper.evalString("width", getWidthExpr(),
1308: this, pageContext)) != null) {
1309: setWidth(string);
1310: }
1311: }
1312: }
|