KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > components > GenericUIBean


1 package com.opensymphony.webwork.components;
2
3 import com.opensymphony.xwork.util.OgnlValueStack;
4 import com.opensymphony.webwork.util.ContainUtil;
5
6 import javax.servlet.http.HttpServletRequest JavaDoc;
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8
9 /**
10  * User: plightbo
11  * Date: Jul 20, 2005
12  * Time: 8:15:46 AM
13  */

14 public class GenericUIBean extends UIBean {
15     private final static String JavaDoc TEMPLATE = "empty";
16
17     public GenericUIBean(OgnlValueStack stack, HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
18         super(stack, request, response);
19     }
20
21     public boolean contains(Object JavaDoc obj1, Object JavaDoc obj2) {
22         return ContainUtil.contains(obj1, obj2);
23     }
24
25     protected String JavaDoc getDefaultTemplate() {
26         return TEMPLATE;
27     }
28 }
29
Popular Tags