1 package uk.ac.ebi.intenz.webapp.controller;
2
3 import java.io.UnsupportedEncodingException;
4 import java.net.URLDecoder;
5
6 import javax.servlet.ServletException;
7
8 import org.apache.struts.action.ActionServlet;
9 import org.apache.struts.action.PlugIn;
10 import org.apache.struts.config.ModuleConfig;
11
12 import uk.ac.ebi.intenz.webapp.utilities.EntryLockSingleton;
13 import uk.ac.ebi.xchars.SpecialCharacters;
14
15
16
17
18
19
20
21 public class IntEnzPlugInAction implements PlugIn {
22
23
24
25 public void init(ActionServlet actionServlet, ModuleConfig moduleConfig) throws ServletException {
26
27
28
29
30
31
32
33
34
35 actionServlet.getServletContext().setAttribute("specialCharactersInstance", SpecialCharacters.getInstance(null));
36
37
38 actionServlet.getServletContext().setAttribute("entryLock", EntryLockSingleton.getInstance());
39 }
40
41 public void destroy(){}
42
43 }