KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tableapp > TableApp


1 /*
2  * tableApp
3  *
4  * Enhydra super-servlet
5  *
6  * Prozone
7  *
8  */

9
10 package tableapp;
11
12 import com.lutris.appserver.server.*;
13 import com.lutris.appserver.server.httpPresentation.*;
14 import com.lutris.appserver.server.session.*;
15 import com.lutris.util.*;
16
17 /**
18  * The application object.
19  *
20  * Application-wide data would go here.
21  */

22 public class TableApp extends StandardApplication {
23
24
25     public TableApp(){
26         }
27
28     /*
29      * A few methods you might want to add to.
30      * See StandardApplication for more details.
31      */

32     public void startup(Config appConfig) throws ApplicationException {
33         super.startup(appConfig);
34         // Here is where you would read application-specific settings from
35
// your config file.
36
}
37     public boolean requestPreprocessor(HttpPresentationComms comms)
38                    throws Exception JavaDoc {
39         return super.requestPreprocessor(comms);
40     }
41
42     /**
43      * This is an optional function, used only by the Multiserver's graphical
44      * administration. This bit of HTML appears in the status page for this
45      * application. You could add extra status info, for example
46      * a list of currently logged in users.
47      *
48      * @return HTML that is displayed in the status page of the Multiserver.
49      */

50     public String JavaDoc toHtml() {
51         return "This is <I>tableApp</I>";
52     }
53 }
54
55
Popular Tags