2
package com.eireneh.bible.view.servlet;
4
import javax.servlet.http.*;
8
import com.eireneh.config.*;
9
import com.eireneh.config.servlet.*;
11
import com.eireneh.bible.util.*;
12
import com.eireneh.bible.control.*;
15
* The simplest possible servlet.
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>
37
public class Config1 extends BaseServlet
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
46
public void generateData(State state, Node node, HttpServletRequest request) throws Exception
48
// Where do we want to return to
49
String caller = request.getHeader("Referer");
50
if (caller == null || caller.equals(""))
53
ConfigDocument confdoc = new ConfigDocument(state.getConfig());
54
confdoc.generateQuestionData(node, caller, "sconfig2");