Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/obinary/cms/taglibs/UnloadPage.java


1   /**
2    *
3    * Magnolia and its source-code is licensed under the LGPL.
4    * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5    * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6    * you are required to provide proper attribution to obinary.
7    * If you reproduce or distribute the document without making any substantive modifications to its content,
8    * please use the following attribution line:
9    *
10   * Copyright 1993-2003 obinary Ltd. (http://www.obinary.com) All rights reserved.
11   *
12   * */
13  
14  
15  
16  
17  
18  package com.obinary.cms.taglibs;
19  
20  import com.obinary.cms.Aggregator;
21  import com.obinary.cms.util.Resource;
22  
23  import javax.servlet.jsp.tagext.BodyTagSupport;
24  import javax.servlet.jsp.PageContext;
25  import javax.servlet.http.HttpServletRequest;
26  
27  
28  /**
29   * Date: Apr 28, 2003
30   * Time: 11:20:59 AM
31   * @author Marcel Salathe
32   * @version 1.0
33   */
34  
35  
36  
37  public class UnloadPage extends BodyTagSupport {
38  
39  
40     public int doStartTag() {
41          HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
42          pageContext.setAttribute(Aggregator.CURRENT_ACTPAGE,Resource.getActivePage(request),PageContext.REQUEST_SCOPE);
43          return EVAL_PAGE;
44      }
45  
46  }