1 package com.lamatek.tags.google; 2 3 import java.io.Serializable ; 4 5 import javax.servlet.jsp.tagext.Tag ; 6 import javax.servlet.jsp.tagext.TagSupport ; 7 8 16 public class GoogleMapKeyTag extends TagSupport implements Serializable { 17 18 String key = null; 19 String domain = null; 20 23 public int doEndTag() { 24 Tag tag = this; 25 while (tag.getParent() != null) { 26 if (tag.getParent() instanceof GoogleMapTag) { 27 ((GoogleMapTag) tag.getParent()).addKey(this); 28 return EVAL_PAGE; 29 } 30 tag = tag.getParent(); 31 } 32 return EVAL_PAGE; 33 } 34 39 public void setDomain(String domain) { 40 this.domain = domain; 41 } 42 47 public void setKey(String key) { 48 this.key = key; 49 } 50 } 51 | Popular Tags |