1 package com.opensymphony.webwork.views.jsp.ui; 2 3 import com.opensymphony.webwork.views.jsp.ui.AbstractUITag; 4 import com.opensymphony.webwork.components.UIBean; 5 import com.opensymphony.webwork.components.Href; 6 import com.opensymphony.xwork.util.OgnlValueStack; 7 8 import javax.servlet.http.HttpServletRequest ; 9 import javax.servlet.http.HttpServletResponse ; 10 11 24 public class HrefTag extends AbstractUITag { 25 26 27 protected String href; 28 protected String errorText; 29 protected String showErrorTransportText; 30 protected String notifyTopics; 31 protected String afterLoading; 32 33 public UIBean getBean(OgnlValueStack stack, HttpServletRequest req, HttpServletResponse res) { 34 return new Href(stack, req, res); 35 } 36 37 protected void populateParams() { 38 super.populateParams(); 39 40 Href link = (Href) bean; 41 link.setHref(href); 42 link.setErrorText(errorText); 43 link.setShowErrorTransportText(showErrorTransportText); 44 link.setNotifyTopics(notifyTopics); 45 link.setAfterLoading(afterLoading); 46 } 47 48 public void setHref(String href) { 49 this.href = href; 50 } 51 52 public void setErrorText(String errorText) { 53 this.errorText = errorText; 54 } 55 56 public void setShowErrorTransportText(String showErrorTransportText) { 57 this.showErrorTransportText = showErrorTransportText; 58 } 59 60 public void setNotifyTopics(String notifyTopics) { 61 this.notifyTopics = notifyTopics; 62 } 63 64 public void setAfterLoading(String afterLoading) { 65 this.afterLoading = afterLoading; 66 } 67 } 68 | Popular Tags |