1 20 21 package golfShop.presentation.xmlc.login; 22 23 import org.enhydra.xml.xmlc.*; 24 import org.enhydra.xml.xmlc.html.*; 25 import com.lutris.appserver.server.httpPresentation.*; 26 import com.lutris.appserver.server.session.*; 27 import java.io.*; 28 import org.w3c.dom.*; 29 import org.w3c.dom.html.*; 30 import golfShop.GolfShop; 31 import golfShop.spec.user.*; 32 import golfShop.presentation.xmlc.utilities.*; 33 34 35 39 public class Logout implements HttpPresentation { 40 43 public void run(HttpPresentationComms comms) 44 throws HttpPresentationException, IOException, SessionException { 45 46 GolfShop application = (GolfShop)comms.application; 47 GolfShopUserManager userManager = application.getUserManager(); 48 try{ 49 userManager.logout(comms.session); 50 53 54 } catch(NullPointerException ex) { 55 } 56 LogoutHTML htmlObj 57 = (LogoutHTML)comms.xmlcFactory.create(LogoutHTML.class); 58 comms.response.writeDOM(htmlObj); 59 } 60 } 61 | Popular Tags |