1 18 19 package org.apache.strutsel.taglib.html; 20 21 import org.apache.struts.taglib.html.FrameTag; 22 import javax.servlet.jsp.JspException ; 23 import org.apache.strutsel.taglib.utils.EvalHelper; 24 25 49 public class ELFrameTag extends FrameTag { 50 51 55 private String actionExpr; 56 60 private String moduleExpr; 61 65 private String anchorExpr; 66 70 private String bundleExpr; 71 75 private String forwardExpr; 76 80 private String frameborderExpr; 81 85 private String frameNameExpr; 86 90 private String hrefExpr; 91 95 private String longdescExpr; 96 100 private String marginheightExpr; 101 105 private String marginwidthExpr; 106 110 private String nameExpr; 111 115 private String noresizeExpr; 116 120 private String pageExpr; 121 125 private String paramIdExpr; 126 130 private String paramNameExpr; 131 135 private String paramPropertyExpr; 136 140 private String paramScopeExpr; 141 145 private String propertyExpr; 146 150 private String scopeExpr; 151 155 private String scrollingExpr; 156 160 private String styleExpr; 161 165 private String styleClassExpr; 166 170 private String styleIdExpr; 171 175 private String titleExpr; 176 180 private String titleKeyExpr; 181 185 private String transactionExpr; 186 187 191 public String getActionExpr() { return (actionExpr); } 192 196 public String getModuleExpr() { return (moduleExpr); } 197 201 public String getAnchorExpr() { return (anchorExpr); } 202 206 public String getBundleExpr() { return (bundleExpr); } 207 211 public String getForwardExpr() { return (forwardExpr); } 212 216 public String getFrameborderExpr() { return (frameborderExpr); } 217 221 public String getFrameNameExpr() { return (frameNameExpr); } 222 226 public String getHrefExpr() { return (hrefExpr); } 227 231 public String getLongdescExpr() { return (longdescExpr); } 232 236 public String getMarginheightExpr() { return (marginheightExpr); } 237 241 public String getMarginwidthExpr() { return (marginwidthExpr); } 242 246 public String getNameExpr() { return (nameExpr); } 247 251 public String getNoresizeExpr() { return (noresizeExpr); } 252 256 public String getPageExpr() { return (pageExpr); } 257 261 public String getParamIdExpr() { return (paramIdExpr); } 262 266 public String getParamNameExpr() { return (paramNameExpr); } 267 271 public String getParamPropertyExpr() { return (paramPropertyExpr); } 272 276 public String getParamScopeExpr() { return (paramScopeExpr); } 277 281 public String getPropertyExpr() { return (propertyExpr); } 282 286 public String getScopeExpr() { return (scopeExpr); } 287 291 public String getScrollingExpr() { return (scrollingExpr); } 292 296 public String getStyleExpr() { return (styleExpr); } 297 301 public String getStyleClassExpr() { return (styleClassExpr); } 302 306 public String getStyleIdExpr() { return (styleIdExpr); } 307 311 public String getTitleExpr() { return (titleExpr); } 312 316 public String getTitleKeyExpr() { return (titleKeyExpr); } 317 321 public String getTransactionExpr() { return (transactionExpr); } 322 323 327 public void setActionExpr(String actionExpr) { this.actionExpr = actionExpr; } 328 332 public void setModuleExpr(String moduleExpr) { this.moduleExpr = moduleExpr; } 333 337 public void setAnchorExpr(String anchorExpr) { this.anchorExpr = anchorExpr; } 338 342 public void setBundleExpr(String bundleExpr) { this.bundleExpr = bundleExpr; } 343 347 public void setForwardExpr(String forwardExpr) { this.forwardExpr = forwardExpr; } 348 352 public void setFrameborderExpr(String frameborderExpr) { this.frameborderExpr = frameborderExpr; } 353 357 public void setFrameNameExpr(String frameNameExpr) { this.frameNameExpr = frameNameExpr; } 358 362 public void setHrefExpr(String hrefExpr) { this.hrefExpr = hrefExpr; } 363 367 public void setLongdescExpr(String longdescExpr) { this.longdescExpr = longdescExpr; } 368 372 public void setMarginheightExpr(String marginheightExpr) { this.marginheightExpr = marginheightExpr; } 373 377 public void setMarginwidthExpr(String marginwidthExpr) { this.marginwidthExpr = marginwidthExpr; } 378 382 public void setNameExpr(String nameExpr) { this.nameExpr = nameExpr; } 383 387 public void setNoresizeExpr(String noresizeExpr) { this.noresizeExpr = noresizeExpr; } 388 392 public void setPageExpr(String pageExpr) { this.pageExpr = pageExpr; } 393 397 public void setParamIdExpr(String paramIdExpr) { this.paramIdExpr = paramIdExpr; } 398 402 public void setParamNameExpr(String paramNameExpr) { this.paramNameExpr = paramNameExpr; } 403 407 public void setParamPropertyExpr(String paramPropertyExpr) { this.paramPropertyExpr = paramPropertyExpr; } 408 412 public void setParamScopeExpr(String paramScopeExpr) { this.paramScopeExpr = paramScopeExpr; } 413 417 public void setPropertyExpr(String propertyExpr) { this.propertyExpr = propertyExpr; } 418 422 public void setScopeExpr(String scopeExpr) { this.scopeExpr = scopeExpr; } 423 427 public void setScrollingExpr(String scrollingExpr) { this.scrollingExpr = scrollingExpr; } 428 432 public void setStyleExpr(String styleExpr) { this.styleExpr = styleExpr; } 433 437 public void setStyleClassExpr(String styleClassExpr) { this.styleClassExpr = styleClassExpr; } 438 442 public void setStyleIdExpr(String styleIdExpr) { this.styleIdExpr = styleIdExpr; } 443 447 public void setTitleExpr(String titleExpr) { this.titleExpr = titleExpr; } 448 452 public void setTitleKeyExpr(String titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; } 453 457 public void setTransactionExpr(String transactionExpr) { this.transactionExpr = transactionExpr; } 458 459 462 public void release() 463 { 464 super.release(); 465 setActionExpr(null); 466 setModuleExpr(null); 467 setAnchorExpr(null); 468 setBundleExpr(null); 469 setForwardExpr(null); 470 setFrameborderExpr(null); 471 setFrameNameExpr(null); 472 setHrefExpr(null); 473 setLongdescExpr(null); 474 setMarginheightExpr(null); 475 setMarginwidthExpr(null); 476 setNameExpr(null); 477 setNoresizeExpr(null); 478 setPageExpr(null); 479 setParamIdExpr(null); 480 setParamNameExpr(null); 481 setParamPropertyExpr(null); 482 setParamScopeExpr(null); 483 setPropertyExpr(null); 484 setScopeExpr(null); 485 setScrollingExpr(null); 486 setStyleExpr(null); 487 setStyleClassExpr(null); 488 setStyleIdExpr(null); 489 setTitleExpr(null); 490 setTitleKeyExpr(null); 491 setTransactionExpr(null); 492 } 493 494 499 public int doStartTag() throws JspException { 500 evaluateExpressions(); 501 return (super.doStartTag()); 502 } 503 504 510 private void evaluateExpressions() throws JspException { 511 String string = null; 512 Integer integer = null; 513 Boolean bool = null; 514 515 if ((string = EvalHelper.evalString("action", getActionExpr(), 516 this, pageContext)) != null) 517 setAction(string); 518 519 if ((string = EvalHelper.evalString("module", getModuleExpr(), 520 this, pageContext)) != null) 521 setModule(string); 522 523 if ((string = EvalHelper.evalString("anchor", getAnchorExpr(), 524 this, pageContext)) != null) 525 setAnchor(string); 526 527 if ((string = EvalHelper.evalString("bundle", getBundleExpr(), 528 this, pageContext)) != null) 529 setBundle(string); 530 531 if ((string = EvalHelper.evalString("forward", getForwardExpr(), 532 this, pageContext)) != null) 533 setForward(string); 534 535 if ((string = EvalHelper.evalString("frameborder", getFrameborderExpr(), 536 this, pageContext)) != null) 537 setFrameborder(string); 538 539 if ((string = EvalHelper.evalString("frameName", getFrameNameExpr(), 540 this, pageContext)) != null) 541 setFrameName(string); 542 543 if ((string = EvalHelper.evalString("href", getHrefExpr(), 544 this, pageContext)) != null) 545 setHref(string); 546 547 if ((string = EvalHelper.evalString("longdesc", getLongdescExpr(), 548 this, pageContext)) != null) 549 setLongdesc(string); 550 551 if ((integer = EvalHelper.evalInteger("marginheight", getMarginheightExpr(), 552 this, pageContext)) != null) 553 setMarginheight(integer); 554 555 if ((integer = EvalHelper.evalInteger("marginwidth", getMarginwidthExpr(), 556 this, pageContext)) != null) 557 setMarginwidth(integer); 558 559 if ((string = EvalHelper.evalString("name", getNameExpr(), 560 this, pageContext)) != null) 561 setName(string); 562 563 if ((bool = EvalHelper.evalBoolean("noresize", getNoresizeExpr(), 564 this, pageContext)) != null) 565 setNoresize(bool.booleanValue()); 566 567 if ((string = EvalHelper.evalString("page", getPageExpr(), 568 this, pageContext)) != null) 569 setPage(string); 570 571 if ((string = EvalHelper.evalString("paramId", getParamIdExpr(), 572 this, pageContext)) != null) 573 setParamId(string); 574 575 if ((string = EvalHelper.evalString("paramName", getParamNameExpr(), 576 this, pageContext)) != null) 577 setParamName(string); 578 579 if ((string = EvalHelper.evalString("paramProperty", getParamPropertyExpr(), 580 this, pageContext)) != null) 581 setParamProperty(string); 582 583 if ((string = EvalHelper.evalString("paramScope", getParamScopeExpr(), 584 this, pageContext)) != null) 585 setParamScope(string); 586 587 if ((string = EvalHelper.evalString("property", getPropertyExpr(), 588 this, pageContext)) != null) 589 setProperty(string); 590 591 if ((string = EvalHelper.evalString("scope", getScopeExpr(), 592 this, pageContext)) != null) 593 setScope(string); 594 595 if ((string = EvalHelper.evalString("scrolling", getScrollingExpr(), 596 this, pageContext)) != null) 597 setScrolling(string); 598 599 if ((string = EvalHelper.evalString("style", getStyleExpr(), 600 this, pageContext)) != null) 601 setStyle(string); 602 603 if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), 604 this, pageContext)) != null) 605 setStyleClass(string); 606 607 if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(), 608 this, pageContext)) != null) 609 setStyleId(string); 610 611 if ((string = EvalHelper.evalString("title", getTitleExpr(), 612 this, pageContext)) != null) 613 setTitle(string); 614 615 if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(), 616 this, pageContext)) != null) 617 setTitleKey(string); 618 619 if ((bool = EvalHelper.evalBoolean("transaction", getTransactionExpr(), 620 this, pageContext)) != null) 621 setTransaction(bool.booleanValue()); 622 } 623 } 624 | Popular Tags |