1 10 package net.sourceforge.ejosa.piggybank.presentation.enhydra; 11 12 import com.lutris.appserver.server.httpPresentation.*; 13 14 16 import java.io.*; 17 18 import java.util.*; 19 20 import org.openuss.presentation.enhydra.framework.*; 21 22 import org.openuss.utility.*; 23 24 import org.w3c.dom.*; 25 import org.w3c.dom.html.*; 26 27 28 34 public class WelcomePage extends FoundationPO { 35 38 public String handleDefault() throws HttpPresentationException { 39 WelcomeHTML page = (WelcomeHTML) this.getComms().xmlcFactory.create( 41 WelcomeHTML.class); 42 43 String errorMsg = this.getSessionData().getAndClearUserMessage(); 45 46 if (errorMsg == null) { 47 page.getElementTStatusbar().getParentNode() 49 .removeChild(page.getElementTStatusbar()); 50 } else { 51 page.setTextTStatusbar(errorMsg); 53 } 54 55 return page.toDocument(); 57 } 58 59 62 public boolean loggedInUserRequired() { 63 return false; 65 } 66 } | Popular Tags |