View Javadoc

1   /*
2    *  $Id: Sciecom.java,v 1.4 2004/07/25 14:12:20 roku Exp $ 
3    *
4    *  Copyright 2004 University of Hannover
5    *
6    *  Licensed under the Apache License, Version 2.0 (the "License");
7    *  you may not use this file except in compliance with the License.
8    *  You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   *  Unless required by applicable law or agreed to in writing, software
13   *  distributed under the License is distributed on an "AS IS" BASIS,
14   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   *  See the License for the specific language governing permissions and
16   *  limitations under the License.
17   */
18  
19  package olr.presentation;
20  
21  import org.w3c.dom.html.HTMLAnchorElement;
22  import org.w3c.dom.html.HTMLTableElement;
23  import org.w3c.dom.html.HTMLTableRowElement;
24  
25  import com.lutris.appserver.server.httpPresentation.HttpPresentationException;
26  
27  // Referenced classes of package olr3Servlet.presentation:
28  //            ExtendedHttpPresentation
29  
30  public class Sciecom extends ExtendedHttpPresentation
31  {
32  
33      public Sciecom()
34      {
35      }
36  
37      public boolean loggedInUserRequired()
38      {
39          return true;
40      }
41  
42      public String handleDefault()
43          throws HttpPresentationException
44      {
45          return showPage();
46      }
47  
48      public String showPage()
49      {
50          SciecomHTML page = new SciecomHTML();
51          try
52          {
53              HTMLTableElement table = page.getElementTable();
54              HTMLTableRowElement generalRow = page.getElementGeneralRow();
55              HTMLTableRowElement expertRow = page.getElementExpertRow();
56              HTMLTableRowElement instanceRow = page.getElementInstanceRow();
57              HTMLAnchorElement htmlanchorelement = page.getElementGeneralInfo();
58          }
59          catch(Exception e)
60          {
61              e.printStackTrace();
62          }
63          return page.toDocument();
64      }
65  }