01: package fops.presentation;
02:
03: import com.lutris.appserver.server.httpPresentation.HttpPresentation;
04: import com.lutris.appserver.server.httpPresentation.HttpPresentationComms;
05: import com.lutris.appserver.server.httpPresentation.HttpPresentationException;
06:
07: import org.enhydra.xml.io.OutputOptions;
08: import org.w3c.dom.html.*;
09: import org.w3c.dom.Node;
10: import java.io.IOException;
11: import fops.presentation.*;
12: import java.text.DateFormat;
13: import org.w3c.dom.Node;
14:
15: public class ShowAppletPO implements HttpPresentation {
16:
17: public void run(HttpPresentationComms comms)
18: throws HttpPresentationException, IOException {
19:
20: String param = comms.request.getParameter("language");
21: org.enhydra.xml.xmlc.XMLObject page = null;
22: OutputOptions oo = new OutputOptions();
23: oo.setMIMEType("text/html");
24:
25: if (param.equalsIgnoreCase("EN1")) {
26: page = (FOPappletEN1HTML) comms.xmlcFactory
27: .create(FOPappletEN1HTML.class);
28: }
29:
30: if (param.equalsIgnoreCase("EN2")) {
31: page = (FOPappletEN2HTML) comms.xmlcFactory
32: .create(FOPappletEN2HTML.class);
33: }
34:
35: if (param.equalsIgnoreCase("DE1")) {
36: page = (FOPappletDE1HTML) comms.xmlcFactory
37: .create(FOPappletDE1HTML.class);
38: }
39:
40: if (param.equalsIgnoreCase("DE2")) {
41: page = (FOPappletDE2HTML) comms.xmlcFactory
42: .create(FOPappletDE2HTML.class);
43: }
44:
45: if (param.equalsIgnoreCase("SH1")) {
46: page = (FOPappletSH1HTML) comms.xmlcFactory
47: .create(FOPappletSH1HTML.class);
48: }
49:
50: if (param.equalsIgnoreCase("SH2")) {
51: page = (FOPappletSH2HTML) comms.xmlcFactory
52: .create(FOPappletSH2HTML.class);
53: }
54: comms.response.writeDOM(oo, page);
55:
56: }
57:
58: }
|