01: /*
02: * cactus
03: *
04: * Enhydra super-servlet presentation object
05: *
06: * 2001 Ryuji "The Hamlet" Hattori. all right reserved
07: *
08: *
09: * formatted with JxBeauty (c) johann.langhofer@nextra.at
10: */
11:
12: package org.hamletsoft.enhydra.cactus.presentation;
13:
14: // Enhydra SuperServlet imports
15: import com.lutris.appserver.server.httpPresentation.HttpPresentation;
16: import com.lutris.appserver.server.httpPresentation.HttpPresentationComms;
17: import com.lutris.appserver.server.httpPresentation.HttpPresentationException; // Standard imports
18: import java.io.IOException;
19: import java.util.Date;
20: import java.text.DateFormat;
21:
22: public class WelcomePresentation implements HttpPresentation {
23:
24: public void run(HttpPresentationComms comms)
25: throws HttpPresentationException, IOException {
26: WelcomeHTML welcome;
27: String now;
28: welcome = (WelcomeHTML) comms.xmlcFactory
29: .create(WelcomeHTML.class);
30: now = DateFormat.getTimeInstance(DateFormat.MEDIUM).format(
31: new Date());
32: welcome.getElementTime().getFirstChild().setNodeValue(now);
33: comms.response.writeDOM(welcome);
34: }
35: }
|