01: package com.opensymphony.webwork.views.jsp.ui;
02:
03: import com.opensymphony.webwork.components.Component;
04: import com.opensymphony.webwork.components.Anchor;
05: import com.opensymphony.xwork.util.OgnlValueStack;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.HttpServletResponse;
09:
10: /**
11: * @see Anchor
12: */
13: public class AnchorTag extends AbstractClosingTag {
14: protected String href;
15: protected String errorText;
16: protected String showErrorTransportText;
17: protected String notifyTopics;
18: protected String afterLoading;
19: protected String preInvokeJS;
20:
21: public Component getBean(OgnlValueStack stack,
22: HttpServletRequest req, HttpServletResponse res) {
23: return new Anchor(stack, req, res);
24: }
25:
26: protected void populateParams() {
27: super .populateParams();
28:
29: Anchor link = (Anchor) component;
30:
31: link.setHref(href);
32: link.setErrorText(errorText);
33: link.setShowErrorTransportText(showErrorTransportText);
34: link.setNotifyTopics(notifyTopics);
35: link.setAfterLoading(afterLoading);
36: link.setPreInvokeJS(preInvokeJS);
37: }
38:
39: public void setHref(String href) {
40: this .href = href;
41: }
42:
43: public void setErrorText(String errorText) {
44: this .errorText = errorText;
45: }
46:
47: public void setShowErrorTransportText(String showErrorTransportText) {
48: this .showErrorTransportText = showErrorTransportText;
49: }
50:
51: public void setNotifyTopics(String notifyTopics) {
52: this .notifyTopics = notifyTopics;
53: }
54:
55: public void setAfterLoading(String afterLoading) {
56: this .afterLoading = afterLoading;
57: }
58:
59: public void setPreInvokeJS(String preInvokeJS) {
60: this.preInvokeJS = preInvokeJS;
61: }
62: }
|