1 40 package org.dspace.app.webui.jsptag; 41 42 import java.io.IOException ; 43 44 import javax.servlet.ServletException ; 45 import javax.servlet.jsp.JspException ; 46 import javax.servlet.jsp.tagext.TagSupport ; 47 48 54 public class IncludeTag extends TagSupport 55 { 56 57 private String page; 58 59 64 public String getPage() 65 { 66 return page; 67 } 68 69 75 public void setPage(String s) 76 { 77 page = s; 78 } 79 80 public int doStartTag() throws JspException 81 { 82 try 83 { 84 pageContext.include(page); 85 } 86 catch (IOException ie) 87 { 88 throw new JspException (ie); 89 } 90 catch (ServletException se) 91 { 92 throw new JspException (se); 93 } 94 95 return SKIP_BODY; 96 } 97 } 98 | Popular Tags |