1 package fops.presentation; 2 3 import com.lutris.appserver.server.httpPresentation.HttpPresentation; 4 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms; 5 import com.lutris.appserver.server.httpPresentation.HttpPresentationException; 6 import org.w3c.dom.html.*; 7 import org.w3c.dom.Node ; 8 import java.io.IOException ; 9 import fops.presentation.*; 10 import java.text.DateFormat ; 11 import org.w3c.dom.Node ; 12 13 public class ShowAppletPO implements HttpPresentation { 14 15 16 public void run(HttpPresentationComms comms) 17 throws HttpPresentationException, IOException { 18 19 String param = comms.request.getParameter("language"); 20 21 if(param.equalsIgnoreCase("EN1")) { 22 FOPappletEN1HTML page = (FOPappletEN1HTML)comms.xmlcFactory.create(FOPappletEN1HTML.class); 23 comms.response.writeDOM(page); 24 } 25 26 if(param.equalsIgnoreCase("EN2")) { 27 FOPappletEN2HTML page = (FOPappletEN2HTML)comms.xmlcFactory.create(FOPappletEN2HTML.class); 28 comms.response.writeDOM(page); 29 } 30 31 if(param.equalsIgnoreCase("DE1")) { 32 FOPappletDE1HTML page = (FOPappletDE1HTML)comms.xmlcFactory.create(FOPappletDE1HTML.class); 33 comms.response.writeDOM(page); 34 } 35 36 if(param.equalsIgnoreCase("DE2")) { 37 FOPappletDE2HTML page = (FOPappletDE2HTML)comms.xmlcFactory.create(FOPappletDE2HTML.class); 38 comms.response.writeDOM(page); 39 } 40 41 if(param.equalsIgnoreCase("SH1")) { 42 FOPappletSH1HTML page = (FOPappletSH1HTML)comms.xmlcFactory.create(FOPappletSH1HTML.class); 43 comms.response.writeDOM(page); 44 } 45 46 if(param.equalsIgnoreCase("SH2")) { 47 FOPappletSH2HTML page = (FOPappletSH2HTML)comms.xmlcFactory.create(FOPappletSH2HTML.class); 48 comms.response.writeDOM(page); 49 } 50 51 } 52 53 } | Popular Tags |