1 package com.lamatek.tags.google; 2 3 import java.io.Serializable ; 4 5 import javax.servlet.jsp.tagext.TagSupport ; 6 7 16 public class GoogleMapInitializeTag extends TagSupport implements Serializable { 17 18 String id = null; 19 String scope = "page"; 20 23 public int doEndTag() { 24 if (id != null) { 25 Object o; 26 if (scope.equalsIgnoreCase("site")) { 27 o = pageContext.getSession().getAttribute(id); 28 } 29 else { 30 o = pageContext.getAttribute(id); 31 } 32 if (o != null) { 33 GoogleMapTag map = (GoogleMapTag) o; 34 map.generateInitializationCode(); 35 } 36 } 37 return EVAL_PAGE; 38 } 39 44 public void setId(String id) { 45 this.id = id; 46 } 47 53 public void setScope(String scope) { 54 this.scope = scope; 55 } 56 } 57 | Popular Tags |