KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > event > ErrorEvent


1 package fr.improve.struts.taglib.layout.event;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4
5 import fr.improve.struts.taglib.layout.LayoutTag;
6 import fr.improve.struts.taglib.layout.util.ParentFinder;
7
8 /**
9  * @author jnribette
10  *
11  * To change this generated comment edit the template variable "typecomment":
12  * Window>Preferences>Java>Templates.
13  * To enable and disable the creation of type comments go to
14  * Window>Preferences>Java>Code Generation.
15  */

16 public class ErrorEvent extends AbstractLayoutEvent {
17     public ErrorEvent(LayoutTag in_tag, Object JavaDoc in_value) {
18         super(in_tag, in_value);
19     }
20     public Object JavaDoc send() throws JspException JavaDoc {
21         ErrorEventListener lc_listener = (ErrorEventListener) ParentFinder.findLayoutTag(source, ErrorEventListener.class);
22         if (lc_listener!=null) {
23             lc_listener.processErrorEvent(this);
24             return lc_listener;
25         } else {
26             return null;
27         }
28     }
29 }
30
Popular Tags