1 11 12 13 package org.hamletsoft.enhydra.cactus.presentation; 14 15 import com.lutris.appserver.server.httpPresentation.HttpPresentation; 17 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms; 18 import com.lutris.appserver.server.httpPresentation.HttpPresentationException; 19 import java.io.IOException ; 21 import java.util.Date ; 22 import java.text.DateFormat ; 23 24 25 public class WelcomePresentation 26 implements HttpPresentation { 27 28 public void run (HttpPresentationComms comms) throws HttpPresentationException, 29 IOException { 30 WelcomeHTML welcome; 31 String now; 32 welcome = (WelcomeHTML)comms.xmlcFactory.create(WelcomeHTML.class); 33 now = DateFormat.getTimeInstance(DateFormat.MEDIUM).format(new Date ()); 34 welcome.getElementTime().getFirstChild().setNodeValue(now); 35 comms.response.writeDOM(welcome); 36 } 37 } 38 39 40 41 | Popular Tags |