KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > param > ParamLinkActionTag


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.param;
14
15 import javax.servlet.jsp.JspException JavaDoc;
16
17 import com.tonbeller.wcf.param.ParamLinkTag.InvokeMethodAction;
18
19 /**
20  * calls a method on a bean when invoked.
21  *
22  * @author av
23  */

24 public class ParamLinkActionTag extends ParamLinkNestedTag {
25   String JavaDoc target;
26   String JavaDoc method;
27   
28   public int doStartTag() throws JspException JavaDoc {
29     ParamLinkTag link = getParamLinkTag();
30     InvokeMethodAction a = new InvokeMethodAction(target, method);
31     link.addAction(a);
32     return EVAL_BODY_INCLUDE;
33   }
34
35   public void setMethod(String JavaDoc method) {
36     this.method = method;
37   }
38   public void setTarget(String JavaDoc target) {
39     this.target = target;
40   }
41   
42 }
43
Popular Tags