KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fops > presentation > ShowAppletPO


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 JavaDoc;
8 import java.io.IOException JavaDoc;
9 import fops.presentation.*;
10 import java.text.DateFormat JavaDoc;
11 import org.w3c.dom.Node JavaDoc;
12
13 public class ShowAppletPO implements HttpPresentation {
14
15
16     public void run(HttpPresentationComms comms)
17         throws HttpPresentationException, IOException JavaDoc {
18
19                 String JavaDoc 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