1 25 26 package org.objectweb.jonas.webapp.taglib; 27 28 import java.io.IOException ; 29 30 import javax.servlet.jsp.JspException ; 31 import javax.servlet.jsp.JspWriter ; 32 33 36 public class RefreshTreeTag extends WhereAreYouTag { 37 38 40 42 44 46 52 public int doEndTag() 53 throws JspException { 54 JspWriter out = pageContext.getOut(); 55 try { 56 render(out); 57 } 58 catch (IOException e) { 59 throw new JspException (e); 60 } 61 return (EVAL_PAGE); 62 } 63 64 66 protected void render(JspWriter out) 67 throws IOException , JspException { 68 if (isTreeToRefresh() == true) { 70 out.print("<script language=\"JavaScript\">"); 71 out.print("refreshTree(\""); 72 out.print(getUrlToRefreshSelectedNode()); 73 out.print("\");"); 74 out.println("</script>"); 75 } 76 } 77 } 78 | Popular Tags |