Last change
on this file since 28256 was 25717, checked in by sjm84, 12 years ago |
Added a BaseGreenstoneServlet servlet that the other servlets now inherit from so that we can be sure that GlobalProperties is properly initialised. There is also some reformatting and import cleaning
|
-
Property svn:executable
set to
*
|
File size:
442 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3;
|
---|
2 |
|
---|
3 | import javax.servlet.ServletConfig;
|
---|
4 | import javax.servlet.ServletException;
|
---|
5 | import javax.servlet.http.HttpServlet;
|
---|
6 |
|
---|
7 | import org.greenstone.util.GlobalProperties;
|
---|
8 |
|
---|
9 | public class BaseGreenstoneServlet extends HttpServlet
|
---|
10 | {
|
---|
11 | public void init(ServletConfig config) throws ServletException
|
---|
12 | {
|
---|
13 | super.init(config);
|
---|
14 | GlobalProperties.loadGlobalProperties(config.getServletContext().getRealPath(""));
|
---|
15 | }
|
---|
16 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.