1 18 package org.apache.beehive.netui.tags.naming; 19 20 import org.apache.beehive.netui.script.ExpressionEvaluationException; 21 22 import javax.servlet.jsp.tagext.Tag ; 23 24 37 public class PrefixNameInterceptor implements INameInterceptor 38 { 39 private String tagKey; 40 41 public PrefixNameInterceptor(String key) 42 { 43 tagKey = key; 44 } 45 46 protected PrefixNameInterceptor() 47 { 48 super(); 49 } 50 51 public String rewriteName(String name, Tag currentTag) 52 throws ExpressionEvaluationException 53 { 54 return rewriteNameInternal(name, tagKey); 55 } 56 57 protected String rewriteNameInternal(String name, String key) 58 throws ExpressionEvaluationException 59 { 60 return org.apache.beehive.netui.pageflow.ProcessPopulate.writeHandlerName(key, name); 61 } 62 } 63 | Popular Tags |