KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > war > tags > ListReportsTag


1 /*
2  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed WITHOUT ANY WARRANTY; and without the
10  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
15  * or write to:
16  *
17  * Free Software Foundation, Inc.,
18  * 59 Temple Place - Suite 330,
19  * Boston, MA USA 02111-1307
20  */

21 package com.jaspersoft.jasperserver.war.tags;
22
23 import javax.servlet.jsp.JspException JavaDoc;
24 import javax.servlet.jsp.tagext.Tag JavaDoc;
25 import javax.servlet.jsp.tagext.TagSupport JavaDoc;
26
27 import org.apache.commons.logging.Log;
28 import org.apache.commons.logging.LogFactory;
29
30
31 /**
32  * @author aztec
33  * @version $Id: JasperViewerTag.java 2098 2006-02-12 17:49:07Z swood $
34  */

35 public class ListReportsTag extends TagSupport JavaDoc {
36
37     private static final Log log = LogFactory.getLog(ListReportsTag.class);
38     
39     /*
40      * Implement Default Method
41      */

42     public int doStartTag() throws JspException JavaDoc {
43         try {
44             //this method should call the MD API - it may be a pseudo implementation also
45
//It should return a Collection of RU-objects - We need to create a Domain
46
//object for RU. We have to populate this RU object which we read from the Metadata Repository
47
//set this Collection object from in request scope and access in the JSP page
48
} catch (Exception JavaDoc _ex) {
49             if (log.isErrorEnabled())
50                 log.error(_ex, _ex);
51             throw new JspException JavaDoc(_ex);
52         }
53         return Tag.SKIP_BODY;
54     }
55
56     /*
57      * Implement Default Method
58      */

59     public int doEndTag() {
60         return Tag.EVAL_PAGE;
61     }
62
63     /*
64      * Implement Default Method
65      */

66     public void release() {
67         //fsdfsd
68
}
69 }
70
Popular Tags