01: package com.salmonllc.examples.example2;
02:
03: //The Salmon Open Framework for Internet Applications (SOFIA)
04: //Copyright (C) 1999 - 2002, Salmon LLC
05: //
06: //This program is free software; you can redistribute it and/or
07: //modify it under the terms of the GNU General Public License version 2
08: //as published by the Free Software Foundation;
09: //
10: //This program is distributed in the hope that it will be useful,
11: //but WITHOUT ANY WARRANTY; without even the implied warranty of
12: //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: //GNU General Public License for more details.
14: //
15: //You should have received a copy of the GNU General Public License
16: //along with this program; if not, write to the Free Software
17: //Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18: //
19: //For more information please visit http://www.salmonllc.com
20:
21: import com.salmonllc.jsp.tags.BaseEmptyTag;
22: import com.salmonllc.html.HtmlComponent;
23:
24: /*
25: * This tag handler exposes the DBSelector GUI component as a JSP custom tag.
26: * It need only implement the create component method to pass the component to the framework and the framework does the rest.
27: */
28:
29: public class DBSelectorTag extends BaseEmptyTag {
30: /**
31: * Initialize a GUI component and pass it back to the framework.
32: */
33: public HtmlComponent createComponent() {
34: return new DBSelector(getName(), getHelper().getController());
35: }
36: }
|