Hi, Pertaining to recent posts, can someone please describe how session or application are defined in a servlet please? In JSP syntax there is no problem but in the method in the .java servlet below:
public class LoadMyServletAtStartup implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { Hashtable style_index = new Hashtable(); style_index.put("element1", "ONE"); style_index.put("element2", "TWO"); application.setAttribute("style_index", style_index); } it is failing to compile: unable to resolve symbol application.setAttribute("style_index", style_index); ^ 1 Error many thanks for your help Paul.