~sword-devel/jsword/trunk

« back to all changes in this revision

Viewing changes to jsword/java/historic/org/crosswire/bible/view/servlet/Config1.java

  • Committer: joe
  • Date: 2002-10-08 21:36:18 UTC
  • Revision ID: svn-v4:a88caf3b-7e0a-0410-8d0d-cecb45342206:trunk:80
big config and comment update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
package com.eireneh.bible.view.servlet;
3
 
 
4
 
import javax.servlet.http.*;
5
 
 
6
 
import org.w3c.dom.*;
7
 
 
8
 
import com.eireneh.config.*;
9
 
import com.eireneh.config.servlet.*;
10
 
 
11
 
import com.eireneh.bible.util.*;
12
 
import com.eireneh.bible.control.*;
13
 
 
14
 
/**
15
 
* The simplest possible servlet.
16
 
*
17
 
* <table border='1' cellPadding='3' cellSpacing='0' width="100%">
18
 
* <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
19
 
* Distribution Licence:<br />
20
 
* Project B is free software; you can redistribute it
21
 
* and/or modify it under the terms of the GNU General Public License,
22
 
* version 2 as published by the Free Software Foundation.<br />
23
 
* This program is distributed in the hope that it will be useful,
24
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26
 
* General Public License for more details.<br />
27
 
* The License is available on the internet
28
 
* <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
29
 
* <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
30
 
* MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
31
 
* The copyright to this program is held by it's authors.
32
 
* </font></td></tr></table>
33
 
* @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
34
 
* @see docs.Licence
35
 
* @author Joe Walker
36
 
*/
37
 
public class Config1 extends BaseServlet
38
 
{
39
 
    /**
40
 
    * Enter elements into an XML Document that can be transformed into
41
 
    * an HTML document using XSL
42
 
    * @param state data about the current request
43
 
    * @param node The place to start adding data
44
 
    * @param request A description of the request
45
 
    */
46
 
    public void generateData(State state, Node node, HttpServletRequest request) throws Exception
47
 
    {
48
 
        // Where do we want to return to
49
 
        String caller = request.getHeader("Referer");
50
 
        if (caller == null || caller.equals(""))
51
 
            caller = "Web";
52
 
 
53
 
        ConfigDocument confdoc = new ConfigDocument(state.getConfig());
54
 
        confdoc.generateQuestionData(node, caller, "sconfig2");
55
 
    }
56
 
}