1 13 package info.magnolia.cms.taglibs; 14 15 import info.magnolia.cms.Aggregator; 16 import info.magnolia.cms.util.Resource; 17 18 import javax.servlet.http.HttpServletRequest ; 19 import javax.servlet.jsp.PageContext ; 20 import javax.servlet.jsp.tagext.BodyTagSupport ; 21 22 23 27 public class UnloadPage extends BodyTagSupport { 28 29 32 private static final long serialVersionUID = 222L; 33 34 37 public int doStartTag() { 38 HttpServletRequest request = (HttpServletRequest ) pageContext.getRequest(); 39 pageContext 40 .setAttribute(Aggregator.CURRENT_ACTPAGE, Resource.getActivePage(request), PageContext.REQUEST_SCOPE); 41 return EVAL_PAGE; 42 } 43 } 44 | Popular Tags |