KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > finalist > jag > taglib > ExceptionTag


1 /* Copyright (C) 2003 Finalist IT Group
2  *
3  * This file is part of JAG - the Java J2EE Application Generator
4  *
5  * JAG is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * JAG is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  * You should have received a copy of the GNU General Public License
14  * along with JAG; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16  */

17
18 package com.finalist.jag.taglib;
19
20
21
22 import com.finalist.jag.*;
23 import com.finalist.jag.taglib.util.RequestUtil;
24
25 import java.util.*;
26
27
28 /**
29  * Class ExceptionTag
30  *
31  *
32  * @author Wendel D. de Witte
33  * @version %I%, %G%
34  */

35 public class ExceptionTag extends TagSupport {
36
37     /** Field message */
38     private String JavaDoc message = null;
39
40     /**
41      * Method getMessage
42      *
43      *
44      * @return
45      *
46      */

47     public String JavaDoc getMessage() {
48         return (this.message);
49     }
50
51     /**
52      * Method setMessage
53      *
54      *
55      * @param message
56      *
57      */

58     public void setMessage(String JavaDoc message) {
59         this.message = message;
60     }
61
62     /**
63      * Method doStartTag
64      *
65      *
66      * @return
67      *
68      * @throws JagException
69      *
70      */

71     public int doStartTag() throws JagException {
72         throw new JagException(message);
73     }
74 };
Popular Tags