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 ; 7 import javax.servlet.http.HttpServletResponse ; 8 9 14 public class GenericUIBean extends UIBean { 15 private final static String TEMPLATE = "empty"; 16 17 public GenericUIBean(OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response) { 18 super(stack, request, response); 19 } 20 21 public boolean contains(Object obj1, Object obj2) { 22 return ContainUtil.contains(obj1, obj2); 23 } 24 25 protected String getDefaultTemplate() { 26 return TEMPLATE; 27 } 28 } 29 | Popular Tags |